Thanks Yigit, works perfectly
Hi Ismael
Thanks. I pasted the code straight to the header.php file, is that ok? Will it stay there if the theme is updated?
Hi Peter
Earlier it was ok to place it at the end of the page, but now it’s recommended to have it in header section. There’s a quote from the updated Google instructions behind your link, it says:
“Paste it into your web page, just before the closing </head> tag.
One of the main advantages of the asynchronous snippet is that you can position it at the top of the HTML document. This increases the likelihood that the tracking beacon will be sent before the user leaves the page. It is customary to place JavaScript code in the <head> section, and we recommend placing the snippet at the bottom of the <head> section for best performance”