AA passing Visitor ID (mid) from querystring parameter to an eVar | Community
Skip to main content
urvijag76854707
Level 2
Aug 7, 2019 7:04 AM UTC
Solved

AA passing Visitor ID (mid) from querystring parameter to an eVar

Hi

I have a single page application using react js. AA implementation is done using launch. The requirement is to track user behaviour on the site and combine it with offline data. Now i want to populate the Visitor ID into an eVar so that i can link it with the customer ID (hashed email value captured in a different eVar). Can some one please explain how we can pass the visitor ID(its available in querystring parameter as mid) into an evar.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
harish_kumarAccepted solution
Employee
Aug 14, 2019 1:27 AM UTC

As you mentioned that mid is available in querystring parameter, you can fetch the mid from querystring using function s.Util.getQueryParam and assign to evar.

Util.getQueryParam

Other method as suggested by Andrey, you can use eVar1="D=mid"; to pull the mid and assign it directly from analytics server call mid parameter to evar.

2 replies

harish_kumarAccepted solution
Employee
Aug 14, 2019 1:27 AM UTC

As you mentioned that mid is available in querystring parameter, you can fetch the mid from querystring using function s.Util.getQueryParam and assign to evar.

Util.getQueryParam

Other method as suggested by Andrey, you can use eVar1="D=mid"; to pull the mid and assign it directly from analytics server call mid parameter to evar.

Translate
Andrey_Osadchuk
Level 10
Aug 12, 2019 3:11 PM UTC

eVar1="D=mid";

Translate