Skip to main content
MJ_1963
Level 2
Oct 16, 2015 2:26 AM UTC
Solved

Determining if prop values came from custom link or page view

If I'm populating the same variable (s.prop) with the same data from a custom link and a page view, is there a way to differentiate between the different sources (page vs. custom link) when I look at the values in that prop? If so how? Also what about when the variable is a list prop?

 

Example Page View:

    s.pageName='Home";

    s.prop1="1|2|3";

Example Custom Link:

    s.linkTrackVars = "prop1";

    s.linkTrackEvents = "None";

    s.prop1="A|B|C";

    s.tl(true,'o','Custom Link Call');

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
MJ_1963
MJ_1963Accepted solution
Level 2
Oct 16, 2015 2:26 AM UTC

Alison Smith wrote...

You can breakdown the prop by the Custom Link name.  A null value would indicate it was generated from a page view.

And likewise, you could breakdown the prop by the Page Name.  Custom Links don't record the page name (although you see it generated in the call to SiteCatalyst in a debugger).

Alternatively, since you can only breakdown one prop value at a time which is tedious, I'd suggest prefixing the prop value with 'l:' for link and/or 'p:' for page, so in your report you'd see:

l:A|B|C

p:A|B|C

You could still use SAINT to roll these up into a summary 'A|B|C' value when required.

 


I really like you idea! Thajks for the great insight!

2 replies

MJ_1963
MJ_1963AuthorAccepted solution
Level 2
Oct 16, 2015 2:26 AM UTC

Alison Smith wrote...

You can breakdown the prop by the Custom Link name.  A null value would indicate it was generated from a page view.

And likewise, you could breakdown the prop by the Page Name.  Custom Links don't record the page name (although you see it generated in the call to SiteCatalyst in a debugger).

Alternatively, since you can only breakdown one prop value at a time which is tedious, I'd suggest prefixing the prop value with 'l:' for link and/or 'p:' for page, so in your report you'd see:

l:A|B|C

p:A|B|C

You could still use SAINT to roll these up into a summary 'A|B|C' value when required.

 


I really like you idea! Thajks for the great insight!

Translate
alison_smith
Oct 16, 2015 2:26 AM UTC

You can breakdown the prop by the Custom Link name.  A null value would indicate it was generated from a page view.

And likewise, you could breakdown the prop by the Page Name.  Custom Links don't record the page name (although you see it generated in the call to SiteCatalyst in a debugger).

Alternatively, since you can only breakdown one prop value at a time which is tedious, I'd suggest prefixing the prop value with 'l:' for link and/or 'p:' for page, so in your report you'd see:

l:A|B|C

p:A|B|C

You could still use SAINT to roll these up into a summary 'A|B|C' value when required.

Translate