I have a very basic and most probably a noob question.
I want to push few set off banners or text on certain web pages. These are messages which user sees on certain conditions and I am trying to achieve this using a custom HTML code in GTM.
The code I explored was from few blogs where using document.write I can push the banner or text on website. The code is below but not sure if its correct as it constantly throws error on line 12, character 2, parse error '}' expected but I am very new in this.
Code is this
<script>
(function(){
var country = {{Country and Language}};
if ((country == be-nl));
{
document.write('Please come later.');
}
else if ((country == be-fr)); //error is at this line as mentioned above
{
document.write('See you soon, Nothing here.');
}
else if ((country == nl-nl));
{
document.write('Thanks for shopping with us.');
}
else country == '(not set)';
})();
</script>