Highlighted

DTM and Adobe Analytics - Problem with multiple page load rules and custom code

Avatar

Avatar

matthewc1813489

Avatar

matthewc1813489

matthewc1813489

15-10-2015

We are having a problem with multiple page load rules that have custom code not playing well together. There are no errors that show up, the rules just simply fail to fire. When other rules are turned off and the number of rules is lower, they work fine.

Also, occasionally, this has been solved by changing the name of one of the page load rules. I believe this may have caused the rules to load in a different order. While this solution has worked for a few of the problems, it doesn't solve all of them.

I have eliminated the possibility of variables colliding since I have written some rules that only output console.log()'s and have no variable assignments or other code that could possibly collide.

This problem has shown up with an implementation that has several dozen page load and direct call rules, and seems to only affect those that are using custom code rather than the variable assignments in the drop down boxes.

I can't seem to figure out a way to determine what is causing the problems since there is no error being reported. It just seems to skip over the rule altogether.

Replies

Highlighted

Avatar

Avatar

matthewc1813489

Avatar

matthewc1813489

matthewc1813489

15-10-2015

To add some more information to this issue:

Page Load Rule Name: scView

Using the page load rule condition:
path includes "checkout/cart/"

Custom Code in the Adobe Analytics Section:
/* Page Load Rule - scView */
console.log("Loading Shopping Cart View");

Problem:

This code never fires.

I turned on debug mode and tried again. Following is the debug log. The debug log says the scView rule fired, but the console.log was never triggered...


SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("taxTotal"), /^(?=\s*\S).*$/i);
} for rule "taxTotal" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("shippingAmount"), /^(?=\s*\S).*$/i);
} for rule "shippingAmount" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Rule "scView" fired. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Rule "repeatVisitor" fired. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("promoCode"), /^(?=\s*\S).*$/i);
} for rule "promoCode" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (event,target){
if (jQuery("li.success-msg span").text() == "Your review has been accepted for moderation.") {
 return true; 
  
}
} for rule "productReview" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("productPage"), "true");
} for rule "productPageView" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("pageType"), "errorPage");
} for rule "pageType" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.isNewVisitor();
} for rule "newVisitor" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Rule "loadAnalytics" fired. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Rule "linkTracking" fired. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Rule "internalCampaign" fired. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("giftCardCheck"), "true");
} for rule "giftCardCheck" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("giftCardAdd"), "true");
} for rule "giftCardAdd" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("discountAmount"), /^(?=\s*\S).*$/i);
} for rule "discountAmount" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Rule "channelStack" fired. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("campaignChannel"), "soc");
} for rule "campChannel - soc" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("campaignChannel"), "ppc");
} for rule "campChannel - ppc" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("campaignChannel"), "emm");
} for rule "campChannel - emm" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Condition function (){
return _satellite.textMatch(_satellite.getVar("campaignChannel"), "dis");
} for rule "campChannel - dis" not met. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Rule "campChannel" fired. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: set variables. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: loaded. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: set variables. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: set variables. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: set variables. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: set variables. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: set variables. satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: detected 8974c0007e966743ef425dfe2d42b5bf.load satelliteLib-688e3fd760f482f1f99898bedf7654467e2ec9c0-staging.js:751
SATELLITE: Adobe Analytics: tracked page view 

Highlighted

Avatar

Avatar

Jeff__Chasin

Employee

Avatar

Jeff__Chasin

Employee

Jeff__Chasin
Employee

15-10-2015

Matthew, can you send me the DTM Company and Web Property where you're having this issue?

Avatar

Avatar

Rahsing

Avatar

Rahsing

Rahsing

15-10-2015

Hi Matthew,

Are you still facing this problem?

Regards

Rahul