Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Validate 1
Level 1
matthewc1813489
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
matthewc1813489
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
matthewc1813489
Level 1

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

Avatar

Avatar
Validate 1
Level 1
matthewc1813489
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
matthewc1813489
Level 1

Likes

0 likes

Total Posts

6 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
matthewc1813489
Level 1

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 

Avatar

Avatar
Seeker
Employee
Jeff__Chasin
Employee

Likes

12 likes

Total Posts

36 posts

Correct Reply

12 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile

Avatar
Seeker
Employee
Jeff__Chasin
Employee

Likes

12 likes

Total Posts

36 posts

Correct Reply

12 solutions
Top badges earned
Seeker
Give Back 10
Give Back 5
Give Back 3
Give Back
View profile
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
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile

Avatar
Give Back 50
Level 6
Rahsing
Level 6

Likes

17 likes

Total Posts

368 posts

Correct Reply

132 solutions
Top badges earned
Give Back 50
Give Back 25
Give Back 10
Give Back 5
Give Back 3
View profile
Rahsing
Level 6

15-10-2015

Hi Matthew,

Are you still facing this problem?

Regards

Rahul