Archived topic
Google Ads Conversion Tracking With Google Analytics - Track Form, Click, Button
7 replies · Started by Paul on April 2, 2022
hello how are you
i want to set up Google Ads Conversion Tracking With Google Analytics - Track Forms, Clicks, and Buttons, others
so i need to add these tags from the screenshot https://prnt.sc/XxL65JwC0XZN to track forms, clicks and buttons
so, all need to be added by element hooks?
do u have file to check about this issue from generatepress
thanks
Hi there,
to insert code into the <head> of the site, which is where these kinds of scripts are generally placed, then use a Hook Element and set the hook to wp_head
The Config Command, the first red box in your screenshot, however needs to be included within a Global Site Tag:
https://support.google.com/google-ads/answer/7548399?hl=en-GB
hi, david
thanks for your help
The global site tag with another piece of code (an event snippet or a phone snippet) should be placed between the <head> and /<Head> section.
1/ the global site tag should be placed on all pages.
2/ another piece of code (an event snippet or a phone snippet) should be placed on the certain pages I would like to track
3/ an event snippet maybe be the the word with the Hyperlink, or maybe be one button with the Hyperlink, and other.
have a nice day.
1. Create a Hook Element just for this with your Global Site Tag script including any Config commands.
The hook will be the wp_head. And the Display Rules set to the Entire Site
2. Adding Event Snippets - use another Hook Element, with the wp_head hook, but this time increase the Priority to 15 - this will ensure its loaded after the Global Site Tag. And set the Display Rules to the specific pages you want it applied to.
Repeat this for any different event snippets you need to add.
3. I think thats up to you and how you implement your tracking codes.
Hi david,
really thanks for your help eveyry time and alwasy SURPRISED ANSWERS.
HAVE A NICE DAY AND STAY SAFE.
BEST REGARDS
Glad to be of help!
Hi David
im sorry that i come back again
According to your guide, i already added click Event Snippet to the Contact Us page,
So now i need to again add below code to Submit Button
<button onclick="return gtag_report_conversion('our contact us page url')">Submit</button>
Now im using Contact Form 7 plugin, https://prnt.sc/1Bh_r2c44fDA
How to add it? because im good at the ccs code editting
once done, it will be verified and will track conversoion. https://prnt.sc/CpijQiHg4IE_
thanks in advance,
Hi Paul,
It would be best to reach out to the support of Contact Form 7 regarding this as this would be out of our scope.
You may need a script as such: https://kriesi.at/support/topic/adding-event-to-contact-form-7-button/#:~:text=Moderator-,Hey%20dondela%2C,-You%20can%20use
Hope this clarifies. :)