Internal pop-up changes id (href) on every update
Hello,
I'm using Brizy Cloud Builder and I'm trying track the activity on a Brizy button that opens an internal pop-up using Google Tags. I finally managed to do this through links and I am using the URL fragment to identify the clicked button. The problem is that the URL fragment (#some-long-letter-sequence) is changing with every update I do wherever on the page.
I really need a way to assign a unique name/id to an internal pop-up to prevent it from changing - similar to how blocks can be named when used as link navigation.
Regards,
Jasmina
-
Hi Jasmina,
These IDs are automatically generated and that is how it works at the moment. I do not think we have a quick solution for you. GTM can not track based on the class of links or ID?
0 -
Hi Alex,
Unfortunately I couldn't manage to make it work otherwise. When using CSS ID or Class, Brizy adds those on a parent <div> tag than the actual button, which is actually an anchor tag. So GTM would record the class or ID on the <a> tag which is none in this case. Btw this also happens with forms - thus I cannot use Form ID or Class either. So somehow I only managed to track the clicks on these anchor tags by using the href attribute.
Maybe I'm missing something, so I am open for suggestions.
Thanks!
0 -
Hi,
If it doesn't work with custom CSS class or id, then I'm afraid we don't have another solution for now.
0
Please sign in to leave a comment.
Comments
3 comments