Hello,
New to Site Catalyst, Im inheriting tracking code set up by previous developers and trying to fix some issues.
on our Checkout Confirmation page, we have the following code set to retrieve and send variables
s.pageName = "Checkout:Order Confirmation"; s.pageType = ""; s.channel = "Checkout:Confirmation"; s.prop1 = "Checkout:Shopping Cart"; s.prop2 = "Checkout:Confirmation"; s.prop3 = ""; s.prop4 = ""; s.prop5 = ""; /* Conversion Variables */ s.state = "@Model.PrimaryContractShippingState"; s.zip = "@Model.PrimaryContractShippingZip"; s.events = "purchase"; s.products = "@Model.ProductStringForTracking"; s.purchaseID = "@Model.UserId"; s.eVar1 = ""; s.eVar2 = ""; s.eVar3 = ""; s.eVar4 = ""; s.eVar5 = ""; s.evar6 = ""; s.evar7 = ""; s.evar10 = "Approved"; s.eVar12 = "@Model.PriorityCode"; s.evar17 = "@Model.Id"; s.eVar21 = "@Model.JoinCode";
when i inspect the code, I am seeing values for all variables. However, when I check Chrome Developer's Headers being sent, I am not seeing that eVar17 is being sent -- here is what i am seeing in DigitalPulse Debugger (some values removed but showing all evars).
In our Order Number report, which has evar17's value as the Metric, we get zero for the number of Order Ids, but we are getting the total number of orders
Order Number |
| ||||||||||
| |||||||||||
1. | None | 99 | 100.0% | ||||||||
| |||||||||||
Total | 99 |
clicking the Help bubble next to None gives me:
The variable did not have a value at the time the event was recorded.
ive verified that the evar17 in question is set up in our container, and that it's status is active.
ive read that the linkTrackVars set to "" will send all variables, but did a test on that and still didnt see evar17 being sent in developer tools network inspector or in the Digipulse Debugger
any help appreciated
Thanks!
Solved! Go to Solution.
Variable names in JavaScript are case sensitive, replace 's.evar' with 's.eVar' for each of these variable (and any others I missed):
s.evar6 = "";
s.evar7 = "";
s.evar10 = "Approved";
s.evar17 = "@Model.Id";
Variable names in JavaScript are case sensitive, replace 's.evar' with 's.eVar' for each of these variable (and any others I missed):
s.evar6 = "";
s.evar7 = "";
s.evar10 = "Approved";
s.evar17 = "@Model.Id";
Views
Likes
Replies