Archived topic
How to Add Google Ads Tracking Code
1 reply · Started by xinghui on September 10, 2022
I want to add the Google Ads tracking code to my website, I want to ask can I put the code snippet directly into the HTMl snippet of the plugin Snippet? Or do I need to put it directly in the head of my function.php file
i want to put there image url:https://i.postimg.cc/nL4gpDrj/google-das.jpg
Hi there,
you can use a Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
Add your code to the Hook text area.
Set the Hook to: wp_head and this will add the code to the <head> of your website.
Set the Display Rules to Entire Site