Keep track of all pages
Posted: Tue Feb 11, 2025 8:33 am
Then, of course, tracking all pages. Make sure you're tracking all pages on your website through Google Analytics. So those are the tags.
Motivations
Next up are triggers. So I have an external links tag. Then I need a trigger for the external links. The trigger says when someone clicks on the external link, I want this event to happen.
Clicks
So the event is where you create the category and then the action and label.
External relations
The way we would structure external links, for example, benin number data would say that the category for this is an external link, the action is click, and then the label is the actual link that was clicked on for example. You can see that you can go through each of these and see where it's happening.
Submits the form.
Then on things like form submissions, for example, our label could be form specific.
Tel: & mailto:
On telephone and mailto:, we can track the phone number.
PDFs
On other things, like PDFs, we can track the page it happened on.
Page scroll
Motivations
Next up are triggers. So I have an external links tag. Then I need a trigger for the external links. The trigger says when someone clicks on the external link, I want this event to happen.
Clicks
So the event is where you create the category and then the action and label.
External relations
The way we would structure external links, for example, benin number data would say that the category for this is an external link, the action is click, and then the label is the actual link that was clicked on for example. You can see that you can go through each of these and see where it's happening.
Submits the form.
Then on things like form submissions, for example, our label could be form specific.
Tel: & mailto:
On telephone and mailto:, we can track the phone number.
PDFs
On other things, like PDFs, we can track the page it happened on.
Page scroll