Set up your advanced segment.

Explore workouts, and achieving AB Data
Post Reply
kexej28769@nongnue
Posts: 321
Joined: Tue Jan 07, 2025 4:32 am

Set up your advanced segment.

Post by kexej28769@nongnue »

Next, look at a URL that has a CSS selector. In the client's case, we used a CSS selector that referenced the author on the page. All of their content pages use the same CSS selector for authors. Using the GTM preview tool you will see that the "NumberOfBlogPagesVisited" variable is implemented.


And the original "BlogPagesVisited" cookie is fired with a value of "1" in Chrome DevTools. To see it, click Inspect > Application > Cookies.


If we skip the second page view and execute our third cambodia number data `1view on another blog page, you will see that our GA event and our custom HTML tag are fired, because this is our third page view.


You will also notice that the third page view has triggered our cookie value of "3" in Chrome DevTools.



Now that you have your cookie set up, you will want to pull the stored cookie data into GA, which will allow you to manipulate the data as you see fit.

In GA, go to Behavior > Events > Overview > Add Segment > New Segment > Sequences > Event Action > and then add the event name that you specified in your event tag. I specified “3 Blog Page Views”.
Post Reply