I have a webpage with a phone number on it.
I want to be able to track how many people are clicking on that phone number.
How can I do this, please?
Many thanks.
Use Komito Analytics. It allows you to track CTAs such as a phone number clicks. See integration page for more information.
You can track how many user clicked the link with phone number.
The sample link looks like:
<a onclick="ga('send', 'event', { eventCategory: 'call', eventAction: 'click'});" href="tel:<YOUR-PHONE-NUMBER>" title="call me">Call Me</a>
And then in Google Analytics for instance you can create a new custom goal.
Go to: Your view->Goals->New Goal
And next do following steps:
Goal setup: custom
Goal description: name (for instance "Call me button"), type: event
Goal details: Category setup as equal to "call", Action setup as equal to "click"
Save
Related
I am trying to track user feedback onclick of thumpsUp(1) or thumsDown(0) : with help of GA but not able to track the events in the Analytics Dashboard as shown below.
window.ga("send", {
hitType: "event",
eventCategory: "button",
eventAction: "feedback",
eventLabel: pageID, // page url
eventValue: value, // 1 or 0
});
}
custom event is not appearing below:
I am able to get events :
Is it possible to map vote and pageID together so that we can know which page has which vote
Many Thanks
The code shown is for Universal Analytics but dashboard is on GA4.
They are 2 different things.
You can find code to setup GA4 events in the documentation: https://developers.google.com/analytics/devguides/collection/ga4/events?client_type=gtag
To understand who clicked on up/downvote you can use the parameters associated with the event:
https://developers.google.com/analytics/devguides/collection/ga4/event-parameters?client_type=gtag
Note: the data in the GA4 platform (unlike UA) are visible after 24h.
I'm working with this preebuild ecommerce system, all of the checkout is in an iframe. And the event below is pushed at every major step, 'checkout 1','checkout 2','payment details' and 'transaction complete' page & title reflects each steps. But NOTE the event name 'VirtualPageview' is the same for all steps mentioned above.
{
event: 'VirtualPageview',
page: '/Test/test',
title 'test | test',
gtm.uniqueEventId:25
}
Visual in gtm debugger:
https://gyazo.com/6356cc13f6b63cad73e55d10abc90154
Now i'm wondering if there is any way to track this as pageviews in analytics? (My primary goal is to create a funnel visualization)
I've read through so much information and as a beginner i'm quite overwhelmed, i would appreciate a little info to point me in the right direction.
Here is what i've done this far, not sure if i'm on the right path.
I feel limited with this setup, because the trigger will trigger on all steps because event name is the same, that would be fine if i could somehow grab page and page title from datalayer dynamically.
GTM TAG
https://gyazo.com/6f7ea35307bca9694835359485b9f74d
GTM Trigger
https://gyazo.com/4c3b489f627dd72e17816e5b5f61f299
You have to create a DataLayer variable called page and another called title (names of your variables) and use them as field values like this: {{page}}
I have created an affiliate marketing website. Here users will register on my website and shop, however the shopping link will be of amazon.
I need to know how to set up Google Analytics so that it can track which registered user has clicked an affiliate link on my website.
For example I have this amazon link
https://www.amazon.in/BassHeads-225-Super-Extra-Headphones/dp/B01M9C51T9/ref=sr_1_1?_encoding=UTF8&pf_rd_i=desktop&pf_rd_m=A1VBAL9TL5WCBF&pf_rd_p=14ffe21a-e5a2-45c9-a9c0-91f47b082bbc&pf_rd_r=94G5Y8CM93G8M5Y2SNS3&pf_rd_t=36701&qid=1554008093&s=gateway&smid=A14CZOWI0VEHLG&sr=8-1
I know I'm supposed to put an onClick event on there somewhere but I don't have any idea how it links to Google Analytics? I am using Google Tag Manager
Is this the correct Onclick code:
onClick="_gaq.push(['_trackEvent', 'Link', 'Click', 'Banner Advert1']);"
If not what do I need to add to track the registered user?
I have many links to external sites on my website; an example link looks like this:
<a id="Buy" data-itemDescription="(a description)" data-itemValue="2.80" href=http://externalsite?id=6789>
The key things here are the extra attributes before the href: id (used to identify the specific event that occurs when the link is clicked, i.e. in this case a Buy event) and the data-itemDescription and data-itemValue metadata (used in constructing the event label etc.)
The relevant GTM artefacts are as follows:
Trigger:
Buy: Click - Just Links when Click Id contains Buy
User-defined variables (custom Javascript):
ItemDescription:
function() {
return {{Click Element}}.getAttribute("data-itemDescription");
}
ItemValue:
function() {
return {{Click Element}}.getAttribute("data-itemValue");
}
ItemValueFloat (100 multiplier used because GA didn't like my decimal places - I then divide by 100 at reporting time to get the right answer):
function() {
return parseFloat({{ItemValue}})*100;
}
Tag BuyClicked is an Event triggered by the Buy trigger as above, with:
Category = Purchase Tracking
Action = Purchase {{ItemDescription}}
Label = {{Page Path}} : {{Click URL}}
Value = {{ItemValueFloat}}
I also have Non-Interaction Hit set True.
The BuyClicked event is then collected by GA, and reportable on from e.g. Google Data Studio, without my having to do anything further.
If you can't add an id or metadata, you could undoubtedly do the same sort of thing more painfully by handling all clicks through a single trigger and then parsing the Click URL via custom Javascript to get granular Categories, Actions, Labels.
We're tracking events on our website and we've managed to implement this:
ga('send', 'event', 'Download', 'completed', 'pathName/filename');
For when a user clicks on a pdf download link. The "pathName/filename" is eg. "whitepapers/mywhitepaper.pdf"
What should I write in the Goal details:
label equals to ...?
label starts with ...?
label regular expression ...?
In a way, the question is similar to this one, with the important difference that I've implemented that part with someone's help but I don't know what do to next in the Analytics to reflect that.
Thanks!
Serge
I'm using the tracking pixel on a newsletter with the following URL:
<img src="http://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXXX-1&cid=111&uid=123&t=event&ec=email&ea=open&el=111&cs=newsletter&cm=email&cn=062413&cm1=1" alt="" />
I can correctly see how many times the newsletter gets opened but I cannot find on Analytics where to see who actually opened it, where do I find the uid list in order to know who opened the email?
You can view the same in Top Events reports.
Go to Behaviour > Events > Top Events and then select secondary dimension as User ID as below. There you will be able to see User ID with Total Events.
Hope this helps !
You have to
enable user id tracking for this ga property first
then create a custom view
then send data and wait
See https://support.google.com/analytics/answer/3123666
As this is not referenced from the ga protocol documentation, this is very unclear when you start to use GA