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

How to clear the eVar value

Avatar

Avatar
Ignite 1
Level 1
ramyar70364866
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile

Avatar
Ignite 1
Level 1
ramyar70364866
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile
ramyar70364866
Level 1

11-08-2019

We set the eVar2 as most recent and expire after visit as we need to persist this eVar in our application.

However in the flow for one scenario, we need to clear this eVar and set to not triggered and also need to clear the persisted value

Scenaio -

Consider a booking flow and we provide an offer for  few customers

when they start the booking flow we apply this offer and tracking using an eVar 2.

eVar 2 = offer 1  and the final bookings are under this offer 1

If they are two offers if the user select the second offer we are overwriting eVar2 = offer 2

And corresponding bookings are attributed to that offer 2

Also in the booking flow customer can remove this offer in this time we don't need to track this booking under any offer.

In this case how to remove the previous eVar 2 value as in this case our system is not passing any offer code.

What is the best practice in this case? Is that okay if we pass eVar2 = " " to over write the previous persisted value.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
MVP
ursboller
MVP

Likes

516 likes

Total Posts

1,016 posts

Correct Reply

254 solutions
Top badges earned
Coach
Contributor
Bedrock
View profile

Avatar
Coach
MVP
ursboller
MVP

Likes

516 likes

Total Posts

1,016 posts

Correct Reply

254 solutions
Top badges earned
Coach
Contributor
Bedrock
View profile
ursboller
MVP

12-08-2019

deleting the eVar in your implementation would result in not sending the data to Adobe Analytics. But it would still persist in reporting (eVar2 still holding the old value).

instead of trying to use a default merchandising variable (eVar), I would suggest you have a look at "products". because basically your user is searching for products with some meta data, adding it to a cart and proceed checkout (purchase/use offer).

the merchandising eVars allows you to "stick" variables to a specific product, eg. you can set eVar2 to "abc" for productX and set eVar2 to "DEF" for productY - all on the same call (Analytics track event).

here are some good resources to read more about:

Implement a merchandising variable

https://adam.analyticsdemystified.com/2011/09/27/merchandising-evars-omniture/

Answers (2)

Answers (2)

Avatar

Avatar
Boost 50
Level 4
Balaji_V
Level 4

Likes

75 likes

Total Posts

70 posts

Correct Reply

10 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Level 4
Balaji_V
Level 4

Likes

75 likes

Total Posts

70 posts

Correct Reply

10 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Balaji_V
Level 4

12-08-2019

Hi Ramya,

Best Practive for the above scenario;

A new clearVars method is available to clear the following values from the instance object like eVars, props, etc... To clear eVar2= Offer1 and to clear the Persisted value use when customer visit Offer 2

The s.clearVars('eVar2') Function

Note: clearVars() is included in AppMeasurement for JavaScript but is not available in H code and previous versions

Thanks,

Balaji

Avatar

Avatar
Ignite 1
Level 1
ramyar70364866
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile

Avatar
Ignite 1
Level 1
ramyar70364866
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 1
View profile
ramyar70364866
Level 1

12-08-2019

Thanks Balaji.. Let me try this way.