Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards
SOLVED

Can I use Cart Addition with Page as a dimension

Avatar

Level 2

I want to know if users add to their cart from a certain page.
I have verified that, when they do, the event scAdd is triggered and sent in the same beacon as the Pagename.

That makes me think that I should be able to use Page as a dimension and Cart Additions as a metric.

Can anyone confirm?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @VirginieRe2 

yes, this should be possible since the page view server call includes the pageName.

 

Maybe as a best practice, I would typically recommend to set the pageName in a separate prop or eVar (depending on how long your pageName can get an eVar with 255 characters may be the better choice, in that case make sure to set it to expire after the Hit though). This allows you to have that value present in all calls.

Cheers from Switzerland!


View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @VirginieRe2 

yes, this should be possible since the page view server call includes the pageName.

 

Maybe as a best practice, I would typically recommend to set the pageName in a separate prop or eVar (depending on how long your pageName can get an eVar with 255 characters may be the better choice, in that case make sure to set it to expire after the Hit though). This allows you to have that value present in all calls.

Cheers from Switzerland!


Avatar

Level 4

In AA, if the hit is not a page view hit then you can't view the events in that hit by the page name. 
In this case if you have any custom dimensions such as eVars or props that capture the page specific information within that hit then you will need to use them.

If the hit is a page view then you will be able to use the page dimension along with the events in question.

Avatar

Level 3

@VirginieRe2 Default Pages Dimension value is not processed if analytics server call is a s.tl(). you need to verify that while firing Add to Cart event , where you are firing pageview call(s.t()) or click call (s.tl()).

For click calls pages dimension value is not processed by adobe by default, you can use custom dimension to store pagename and then use with add to cart event.

Avatar

Community Advisor and Adobe Champion

Yes, as others have said, you can build out your page view calls (s.t) and action calls (s.tl) with the dimensions and metrics that you need.

 

The only exception to this is action calls, that while you will see the page name and page url included in the calls, these are removed during processing. In Adobe, page views are calculated on any hit that has one or both of those fields. It's also why many people set up a custom dimension to hold the page name and url so that they can correlate those values to their pages and their actions.

 

So, you can send cart events on actions, or on pages (if you are trying to reduce server calls, by combining the add to cart with the page view that shows the addition - think of Amazon that loads a new page showing "item x has been added to your cart")

 

If you are always sending this event on a page view, you can absolutely look at the data in conjunction with the standard page name dimension. However, if you have any mixed implementation, you might want to create a custom dimension that can work with pages and actions.