- This topic has 7 replies, 3 voices, and was last updated 4 months, 1 week ago by Fernando.
April 2, 2022 at 7:29 am #2175532Paul
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
thanksApril 2, 2022 at 7:50 am #2175715DavidStaffCustomer Support
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
The Config Command, the first red box in your screenshot, however needs to be included within a Global Site Tag:April 3, 2022 at 12:18 am #2176184Paul
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.April 3, 2022 at 2:02 am #2176251DavidStaffCustomer Support
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
2. Adding Event Snippets – use another Hook Element, with the
wp_headhook, 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.April 3, 2022 at 4:42 am #2176336Paul
really thanks for your help eveyry time and alwasy SURPRISED ANSWERS.
HAVE A NICE DAY AND STAY SAFE.
BEST REGARDSApril 3, 2022 at 5:08 am #2176348DavidStaffCustomer SupportApril 3, 2022 at 5:34 am #2176364Paul
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,April 3, 2022 at 7:58 pm #2176979Fernando Customer Support
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. 🙂
- You must be logged in to reply to this topic.