Cookie hidden fields don't work if custom html is used for known visitors

Craig_Boren
Level 2

Re: Cookie hidden fields don't work if custom html is used for known visitors

Sanford Whiteman‌ - Done!

SanfordWhiteman
Level 10 - Community Moderator

Re: Cookie hidden fields don't work if custom html is used for known visitors

With the updated framework your config would be built like so...

 

  var hiddenFieldRules = [      
{
name : "UTM_Campaign__c",
channel: "query",
selector: "utm_campaign"
},
{
name : "UTM_Campaign__c",
channel: "constant",
selector: "Fallback value if no utm_campaign"
},
{
name : "UTM_Content__c",
channel: "query",
selector: "utm_content"
},
{
name : "UTM_Content__c",
channel: "constant",
selector: "Fallback value if no utm_content"
},
{
name : "UTM_Medium__c",
channel: "query",
selector: "utm_medium"
},
{
name : "UTM_Medium__c",
channel: "constant",
selector: "Fallback value if no utm_medium"
}
];‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
Craig_Boren
Level 2

Re: Cookie hidden fields don't work if custom html is used for known visitors

Thank you Sanford Whiteman‌! This is exactly what I was looking for!

SanfordWhiteman
Level 10 - Community Moderator

Re: Cookie hidden fields don't work if custom html is used for known visitors

Glad you like it, Craig.