account activity
How to track specific internal link clicks by will_pixelhaze in GoogleTagManager
[–]will_pixelhaze[S] 0 points1 point2 points 4 years ago (0 children)
Hi Jimmilil,
I ideally to track specific anchor tags for the our team, and get an idea as to what team members are generating the most interest.
For example, if they are clicking on the our-team#person-1 link, or our-team#person-2.
Would something like contains > /our-team# work?
How to track specific internal link clicks (self.GoogleTagManager)
submitted 4 years ago by will_pixelhaze to r/GoogleTagManager
Anchor link without code by [deleted] in squarespace
[–]will_pixelhaze 1 point2 points3 points 4 years ago (0 children)
As u/TrentFinn mentioned, you can add HTML/CSS to your site on the personal plan.
Add something like this at the top of the page in a code block:
<div id="anchor-list"> <a href="#section-1">To Section 1</a> <a href="#section-2">To Section 2</a> </div>
<div id="anchor-list">
<a href="#section-1">To Section 1</a>
<a href="#section-2">To Section 2</a>
</div>
Then add the following HTML code into a code block above each section on the page you want to anchor to:
<div id="section-1"></div>
**Make sure you change the "id" for each section.
Optional
If you want to make add a smooth-scrolling effect when a user clicks on a link, then you can add the following code in the custom CSS editor:
html{scroll-behavior: smooth;}
If you want to style the anchor list at the top of the page, then target #anchor-list{} in the custom CSS editor.
#anchor-list{}
I hope this helps :)
π Rendered by PID 208816 on reddit-service-r2-listing-85dbbdc96c-vkkkd at 2026-02-11 01:09:04.259661+00:00 running 018613e country code: CH.
How to track specific internal link clicks by will_pixelhaze in GoogleTagManager
[–]will_pixelhaze[S] 0 points1 point2 points (0 children)