Tracking pixels (again)

You previously helped me with adding a remarketing pixel to the footer, by creating a base.php file in the footer directory (wp-content/themes/pro-child/framework/views/footer) within my child theme. Thanks for that.

Unfortunately the client supplied me incorrect code and we’re having to use a different solution in order to add this functionality – they now want to add a tag container (Google Tag Manager) and have supplied me two lots of code, one each to go before the closing head & body tags.

I found another thread here: https://theme.co/apex/forum/t/adding-gtm-fb-pixel-and-affiliate-tracking/1204/2 – can I use the add-action as detailed on friech’s reply to modify the functions.php file?

Hi there,

Yes, you can use the code on the reply that you have linked and supply your code in the <!-- Your code here, this code will be output inside the <head> of the page --> lines.

Hope this helps.

That’s great, thank you very much

You’re welcome.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.