Turning data layer variables into tracked pages with title/urls/paths

Hello,

I’ve scoured the community and can’t find a good solution for my issue. I’m working with custom wedding builder app built into the page Custom Ring Builder - Worthington Jewelers.

The developer has added some elements that I’m generating variables from:

jos_page.title
jos_page.url
jos_page.path

At each step of ring builder process, these three variables change (step 1, step 2, etc.)

I’m stuck on “converting” the variables into virtual pageviews that are recorded in session data. I’ve created a virtual pageviews tag that only triggers on Custom Ring Builder - Worthington Jewelers with these two fields:

{{jos_page.url}}
{{jos_page.title}}

During debug, I’m seeing the variables in the data layer and the tag fires but I’m not seeing the virtual urls and titles being captured anywhere. Maybe the solution is as simple as changing the tag fields??

Hi David!

Have you checked the page views in tracker debugger? Do they have the page title? Can you also check the browser’s console for any errors?

Hi @sararekowska

Tracker debugger shows the HTML pages fine. Here’s a session in tracker debugger where I hit multiple steps of the ring builders process. That info was captured in the tag managers debugger but tracker debugger only showed this:

Not sure if I already added this but I am serving the PP tag from GTM due to limitations of the site.

Alright, and how is the trigger set up? Is the page view triggered on data layer events?

No, and perhaps that is the problem:

And here is the tag associated with the trigger:

There is a “pageview” event sent to the data layer on each step - you should use the data layer event trigger instead, it will be more reliable :slight_smile:

So, I’m an idiot. What would such a trigger look like?

Nope, just human! Happens to the best of us :slight_smile: Here is how the trigger should be set up:

If this “pageview” event appears anywhere else, then you can add a condition that it should only fire on page URLs that contain “custom-ring-builder”, for example.

1 Like

So like this?

And no changes needed to the tag?

Are the variables correct?

Yes, I think that will be sufficient

1 Like

Working now! Thanks for your assistance!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.