Home › Forums › All Other Themes › Google tracking code
- This topic has 11 replies, 2 voices, and was last updated 7 years, 11 months ago by Sonl Sinha.
-
AuthorPosts
-
December 19, 2016 at 10:56 am #55995
Hi,
I would like to put the Google anslytics tracking code to the “Call Us” phonenumbers and to the “Get the quote” button. Like this for example:ga('send', { hitType: 'event', eventCategory: 'Videos', eventAction: 'play', eventLabel: 'Fall Campaign' });
Could you help me in that way how to?
Here is my website: www.tututeher.hu
Thanks.
AndrewDecember 19, 2016 at 11:00 am #55996Or:
ga('send', 'event', 'Videos', 'play', 'Fall Campaign');
December 20, 2016 at 10:25 am #56144Hi Andras,
These links will help you:
https://support.google.com/adwords/answer/1722054?hl=en
http://searchengineland.com/googles-website-call-conversion-tracking-keyword-level-call-tracking-adwords-222221
Regards,
DaveDecember 20, 2016 at 10:47 am #56154Dear Dave,
Thanks for the nothing. I have found earlier this posts but I’am not a developer, just a simple user. I would like to know where and how I have to put this code in?
Regards,
AndrewDecember 20, 2016 at 12:00 pm #56167Hi Andrew,
Kindly go to Appearance>>Theme Options>>Header>>Header Right>>Call Us Box
Replace the code with this code:
<i class="fa fa-phone"></i> <div class="seprate-column"> <strong>Call Us</strong> <a href="tel:+10 2234567890" onClick=”ga('send', 'event', 'Videos', 'play', 'Fall Campaign');“>+10 2234567890</a><br /> <a href="tel:+10 1123456789">+10 1123456789</a></div>
Regards,
DaveDecember 21, 2016 at 10:25 am #56284Ok, thanks. And the for the “Get the quote” button?
December 21, 2016 at 10:44 am #56288Hi Andrew,
Get the quote button is in div tag you have to change it to anchor tag. Go to header.php and you will find the get a quote button.
Regards,
DaveDecember 27, 2016 at 2:40 pm #56692I couldnt make the “Get A Quate” button tracking. I had used the Contact Form 7 Additional Settings to tracking the submits.
But I have to track the phone numbers too. I tried you version, but when I saved the modified lines, it hadnt saved…
Any solutions?
January 4, 2017 at 6:47 pm #57394Ask again: Any solutions?
Best regards,
AndrásJanuary 5, 2017 at 6:59 am #57446Hi András,
For “Get A Quate” button kindly go to header.php (Lin no. 91) and change the code from there.
Regards,
DaveJanuary 5, 2017 at 11:07 am #57482The “Get the quote” doesnt matter anymore, as I wrote it earlier. I would like to put the tracking code to the phone number as you told me, but when I saved the modified lines, it hadnt saved…
January 6, 2017 at 12:43 pm #57606Hi,
I am unable to understand when you modify a template why won’t it get saved?
Do you have server cache?
Regards,
Brad -
AuthorPosts
- You must be logged in to reply to this topic.