how to count clicks on tieh wordpress and google adwords - wordpress

On my site
www.intro.co.il
it's on maintenance but there is a catalog to download.
I need your with which code i need to put on my wordpress site so i can know the amount of click on the download catalog button in my google analytics account
I have tried the call center support and they told me to try here.
thanks a lot!

Easiest (not necessarily most elegant) solution is just to track an Analytics event in the onclick handler of your button.
Something along the lines of
<button onclick="ga('send', 'event', 'Catalog', 'Download')">
This will let you see the number of clicks on that button in the Events view in Google Analytics.

Related

Tracking help center article link clicks in Google analytics

My company's support department uses freshdesk to handle our help desk tickets and also to host our solution center articles. I am trying to track when users click links to our help center articles that we put in our ticket replies. So far I've been trying to do this by using utm parameters, and creating a unique campaign for each article. I am running into difficulty programmatically accessing the text area where we type our replies to add the utm parameters to links before they are sent out. I am wondering if there is a better way to go about this that I'm not thinking of. I know this is pretty specific, but any ideas are very Appreciated!
Managing distinct campaign names for each help article may be a hassle. I'd suggest you turn to event tracking for this kind of task. You may have set up sending an event to analytics each time a link to help article is clicked and put the URL of the link to some of the event parameter e.g. 'event action' or 'event label'. So then you can get the event data in Behavior > Top events reports for each link
Some links for you to explore:
About Google Analytics Events
Tracking link clicks with Google Tag Manager
Event tracking with google analytics.js

Google Analytics Phone Number Tracking in Wordpress?

I am trying to figure out how to add tracking with Google Analytics to multiple phone numbers on a Wordpress site. I saw this page from and earlier Stack Overflow post but I wasn't sure if it was up to date. I noticed somewhere else (here) on a Google search that said you have to add an Event in your GA account first and then add that code. Is this correct? Or do you just have to add the code itself to the Wordpress site without adding an Event in GA?
Also, if it's code for a link, can I highlight the phone number and put the code into the link area (as in chain link in the Visual Editor) on the page, or do I have to place this code in the Text Editor part of the page?
I'm using the current UA right now.
Also, I'm really new to this event tracking stuff, so please accept my apologies if I stated/asked anything incorrectly. Thanks in advance for any and all feedback.
Add a class to all your phone number instances within your HTML. ie class="tel">
Write a click function on that class, and then push the ga following the correct version syntax.
ga('send', 'event', 'category', 'action');
So:
$('.tel').click(function() {
ga('send', 'event', 'Category1', 'Action1', 'Demo!');
});
Use Google Tag Manager. It's great tool. There is also a plugin: DuracellTomi's Google Tag Manager for WordPress. You must read some documentation about GTM but when you will know GTM you can track almost anything on your site.

Tracking clicks with Google Analytics on a link to AppStore

Tracking clicks with Google Analytics:
I am trying to track clicks on a download button on my site (wordpress) that takes users to the AppStore.
I set up a goal and changed the button code to the following:
<a onClick="ga('send', 'event', 'AppStore', 'Click', 'top-button', '0');"href="
www.example.com">Download on the App Store</a>
and nothing is tracking. (By that, I mean that website visits are tracking but not clicks)
I have come across this support article (https://support.google.com/analytics/answer/1136920?hl=en) that seems to imply that outbound links need an additional tracking code installed in the site's header, so i've added that in, and still no clicks are being tracked.
The support article also seems to mention that outbound links should be tracked as follows:
Check out example.com
I am confused as to what code I should be using on the button to be able to effectively track clicks.
Advice please!

Google Analytics Custom Tracking

For marketing purposes, if a link to our company website is posted on a page on an external website. Is it possible to track the time in which the user landed on the external website and clicked on the link to our company website, using custom tracking ?
I have been reading about custom GA tags however am having a hard time understanding how to make the above possible.
Thanks in advance!
You cannot track an external website, as you can only track sites where you control the tracking code.
If you have control over the external site and have implemented analytics tracking there you would
create a timestamp on page load
add an onclick event handler to the link to your site
in the callback function for that link create another timestamp, substract the original timestamp to get a duration
send a user timing call:
ga('send', 'timing', 'Link', 'Duration to click', duration);
Where the "duration" parameter would be replaced with your timestamp.
As I've said that would only work if you can run your own Google Analytics on the external site which does not seems very likely. Plus I have really no idea what you mean by "custom GA tags" (there are custom variables and custom dimensions/metrics, both of which will not help you here).
So basically the anwser is you can't, really.

Google Analytics - Inpage Analytics - Outbound Link Click Count

I'd like to see how many clicks occur to the "Buy Now" links on my website. Unfortunately, the buy now links are external to my site. There has got to be a way to set up these links so I can see the click count when I view the inpage analytics.
How do you set up Google Analytics so it will track the outbound links and show the click count in the inpage analytics?
You want to use event tracking for this. Here is a simple one using Universal Analytics (with jQuery):
jQuery('a.tracklink').on('click', function() {
ga('send', 'event', 'Category', 'Action', 'Label');
});
You'll want to change the Category, Action, and Label to properly categorize them in GA. Maybe something like:
ga('send', 'event', 'Outbound Link', 'Click', 'Buy Now');
Others may recommend stopping the propagation of the click action to make sure the tracking goes through (and then forwarding on success), but there are some UX reasons why I'm not a fan of that method. I have not personally run into an issue of the event not being tracked with the above method.

Resources