Expand my Community achievements bar.

A Persistent Variable Across Multiple Visits

Avatar

Level 4

8/6/19

Hi,

Can we have a specific variable or a data element which I can use or carry forward from one visit to another?

Ex: I have selected USA as my country in my earlier visit, and can I have any data element or a variable where it can hold that across multiple visits?

I am referring to something similar to a local storage in the browser.

Thanks,

Kishore.

2 Comments

Avatar

Community Advisor

8/6/19

if it is something important like "language", "country", ... I would ask the devs to implement a cookie for the user to save the information.

otherwise just set the cookie with DTM/Launch and read the value of the cookie using a data element

Avatar

Community Advisor

9/3/19

What about the Adobe Marketing ID.

https://dmpg.co.uk/visitor-ids-in-adobe-experience-cloud/

Its permanent and can last for Years. Caveats.

if users accesses from a different device they will get a new ID

If users clears cookies they will get a new ID

Other than that its very useful.