Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Checkout Rule

bindukumari1990
Level 4
Level 4

I am creating checkout rule on click, rule is firing properly, but data is not storing in evar as URL changes when we click on the button.

1 Accepted Solution
yuhuisg
Correct answer by
Community Advisor
Community Advisor

I assume you're doing this in Adobe Launch. (In which case, your question is better suited at https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/qa-p/experience-pl....)

Furthermore, I assume you want to track the clicked button's link, so you're firing your Rule with a Click event for that button.

In that case, the easiest way to get the button's link in your eVar is with the "this" object. With a Click event, the "this" object refers to the clicked DOM element, i.e. your button. So that gives you access to that element's JavaScript properties.

If your button is a stylized <A> link, then one of the "this"'s properties is "href", which would be the button's link. So in Adobe Launch, in your Adobe Analytics Set Variables action, you can configure your eVar like so (my example uses eVar3):

eVar3 Set as %this.href%

This ensures that your eVar always tracks whatever link your clicked button has.

View solution in original post

1 Reply
yuhuisg
Correct answer by
Community Advisor
Community Advisor

I assume you're doing this in Adobe Launch. (In which case, your question is better suited at https://experienceleaguecommunities.adobe.com/t5/adobe-experience-platform-launch/qa-p/experience-pl....)

Furthermore, I assume you want to track the clicked button's link, so you're firing your Rule with a Click event for that button.

In that case, the easiest way to get the button's link in your eVar is with the "this" object. With a Click event, the "this" object refers to the clicked DOM element, i.e. your button. So that gives you access to that element's JavaScript properties.

If your button is a stylized <A> link, then one of the "this"'s properties is "href", which would be the button's link. So in Adobe Launch, in your Adobe Analytics Set Variables action, you can configure your eVar like so (my example uses eVar3):

eVar3 Set as %this.href%

This ensures that your eVar always tracks whatever link your clicked button has.

View solution in original post