Expand my Community achievements bar.

Unable to get the evar under the Pageview rule.

Avatar

Level 3

I have two rules for page views. Once is the default Page view, and the other is the custom page view.

 

I configured the page path evar with a value from the data Layer in the XDM object for both page views. However, the evar was not rendered in the network call or the debugger. For default page views I didn't get the value for the evar, and for the custom page views, the value was getting. I will attach the Rule approach for the default page views below.

 

In this you can see the empty value for the evars

PadmajaS_6-1748590551021.png

 

 

1. Here, PageView-test is a default page view, and PageView{AA} is a custom page view.

PadmajaS_0-1748589929658.png

2. This is the XDM object for the default page view. Here I gave the evar for the Path and web page details for the default page view.

PadmajaS_1-1748590233873.png

PadmajaS_2-1748590305375.pngPadmajaS_3-1748590341942.png

3. Rule for the default page view,

PadmajaS_4-1748590407704.png

PadmajaS_5-1748590442323.png

 

 

can anyone, please help me to set the evar for this.

 

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Community Advisor

@PadmajaS 

It looks like your eVar value isn’t being captured in the default pageview ("PageView-test") because when that rule fires (as the Launch library loads), the data element pulling from the dataLayer returns undefined.

To test this: try hardcoding a value into the eVar data element temporarily and check if the "PageView-test" rule then captures it.

To fix this: ensure the dataLayer values are available before the "PageView-test" rule fires or adjust the rule to fire after the page object is fully set.

Avatar

Level 3

Thanks for the input. I will try this by keeping the default value in rule

Avatar

Level 5

Why dont you map the evar from adobe analytics to the equivalent one to schema in custom code? 

Avatar

Level 3

I am not using any custom code in this rule. whether I need to add the custom code to this rule.