Site logo

Archived topic

Tracking Blog Post Comments with GTM

3 replies · Started by Joseph Sloan on August 21, 2020

Viewing posts 1–4 of 4

Hi,

I'm trying to track comments on blog posts as events in Google Analytics, through Google Tag Manager. I have an AJAX listener for my newsletter sidebar and contact form that work like a charm. But for comments I don't seem to be catching any meaningful variables. When a comment is posted the page reloads with an anchor link to the comment (example: /hello-world#comment-2). I tried to create a trigger based on URL but the anchor portion of the link is not present in any variables.

Do you have any suggestions on how I can track blog comments with GTM in generate press?

Glad you got it working! :)

This archived topic is closed to new replies.