Reputation: 357
I have a link in the header of my website which takes users to the 'my account' page.
On a full screen desktop browser the link is is a small icon and the text 'my account' next to it (using ':)' to represent the icon btw) i.e.
:) my account
.
On a mobile or tablet (smaller screen), only the icon appears and not the words. i.e.
:)
To conserve screen space.
I want to see whether I have put the my 'account link' in a good place. And whether people notice only the icon, when on mobile or tablet.
I plan to measure this by seeing how many times the 'my account' link is clicked and split up the clicks by device/os.
For example i might find, lots of people click the 'my account' link on the desktop site, but hardly anyone clicks it in comparison on IOS or any other mobile device e.g. android.
Thus showing it perhaps isn't as noticeable or is confusing when i only display the icon without the text on small screens.
Does anyone know how i can achieve this in tag manager/ google analytics.
I previously set up tags that track page views and virtual page views(using datalayer variables) so have some experience with tag manager V2.
(as an aside is there a way to tell whether a click has come from a mobile or tablet also?)
Thanks for any input!
Upvotes: 1
Views: 1065
Reputation: 422
The easier way to do this is to set a simple GTM tag with firing rule - click on the element you want to track (by class or id or whatever you wish), send the clicks data as events in Google Analytics and review the event with secondary dimension device category (which is mobile/desktop/tablet), or even device name/model. You can create a custom report for this to be easier to access everytime.
So - 1st - set a new GTM Tag - type Universal Analytics, Event, and fill the "Event category" as "my-account clicks" (just an example). Look at the source code of your site, and see if the link have an id to use (for example - id="my-account"). Set a firing rule on clicks - some clicks - element id equals my-account. That's all actually, the clicks will send an event to GA. You can get some more info to be sent with the event, like setting event action - "Clicked on: {{url}}", to give you information on what page the user clicked the link. You can play also with the firing rule, but that's the basic setup.
Once you are done you can test it with Real-Time, under events.
Later, when you collect enough info - just go to events in your GA, under behavior, click on the "my-account clicks" and set a secondary dimension - device category.
Upvotes: 1