Tell us what you are trying to do?
I am trying to follow the steps indicated in the ticket: https://wpml.org/forums/topic/google-tag-manager-and-wpml-for-multiple-domains/ in order to install in the header.php archive a Google Tag Manager pixel for each of my domains (sportmadness.es, .fr, .mx, .uy, .pe, .pt, .in). As you may see, it is a multiple domain website and I want a different GTM pixel for each domain.
I have tried to follow the indications in the ticket, adding that php function in my site's <head> and my <body>, where I already have a singular GTM pixel, but the archive detects a syntaxis error before updating: syntax error, unexpected 'if' (T_IF), expecting ':'
Is there a similar example that we can see? Video of the error: hidden link
Thank you for contacting us. By the error message, it is showing that the error is on line 31. What is in line 31? Please, using pastebin.com, could you post the complete header.php file?