Assign dynamic value to eVar upon user behavior | Community
Skip to main content
Level 7
December 21, 2020
Solved

Assign dynamic value to eVar upon user behavior

  • December 21, 2020
  • 2 replies
  • 1628 views

Is it possible to assign different value to same eVar upon different user behavior?

e.g., a page can be accessed either by click a tab or directly copy/paste URL

if the page is accessed by clicking a link/tab on previous page (in same domain), assign value to : "PageName A Link"

if it is accessed by copy/paste, assign value to: "PageName A"

Plus,

is it possible to assign to "PageName A SE" if it is landing from external search engine?

 

Thanks in advance.

H

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Brian_Johnson_

@h_l -

It sounds like you're wanting to create a report that combines the page name with the traffic source. If that's the case, it's certainly possible, but it requires client-side code to identify each of your marketing channel based on referrers, tracking codes, etc. (In a way, you have to build Marketing Channel Processing Rules, but using JavaScript.) If you're using Launch, take a look at the Channel Source Identifier extension. It should take care of the heavy lifting for you, but you'll still have to define your channels and how they're defined.

2 replies

yuhuisg
Community Advisor
Community Advisor
December 22, 2020

Sure, you can assign any value that you want to an eVar… as long as you know how to code it properly.

This requirement might be impossible, though:

if it is accessed by copy/paste, assign value to: "PageName A"

because it's not possible to detect when a user has pasted a URL into their browser's address bar.

But the other two are definitely possible with the right coding for setting your eVar's value.

Brian_Johnson_
Brian_Johnson_Accepted solution
Level 8
December 22, 2020

@h_l -

It sounds like you're wanting to create a report that combines the page name with the traffic source. If that's the case, it's certainly possible, but it requires client-side code to identify each of your marketing channel based on referrers, tracking codes, etc. (In a way, you have to build Marketing Channel Processing Rules, but using JavaScript.) If you're using Launch, take a look at the Channel Source Identifier extension. It should take care of the heavy lifting for you, but you'll still have to define your channels and how they're defined.

H_LAuthor
Level 7
January 26, 2021
Thanks for reply @brian_johnson_