@yali thanks for the suggestion. and @digdeep thanks for the work done. we have this testing in staging and now getting errors where for some reason the JS (we are on 2.8.0) is sending activeExprimentID as integer instead of character. JSON schema 1-0-0 clearly states expirement and variation ids are char(12)
[{‘level’: ‘error’, ‘message’: ‘error: instance type (integer) does not match any allowed primitive type (allowed: [“string”])\n level: “error”\n schema: {“loadingURI”:"#",“pointer”:"/properties/activeExperimentId"}\n instance: {“pointer”:"/activeExperimentId"}\n domain: “validation”\n keyword: “type”\n found: “integer”\n expected: [“string”]\n’}], ‘failure_tstamp’: ‘2017-07-03T19:15:54.455Z’}
you can clearly see that this is being sent as an integer from the JS instead of a character field. variation id is being sent correctly as character field though.
{\\“schema\\”:\\“iglu:com.optimizely.snowplow/optimizely_summary/jsonschema/1-0-0\\”,\\“data\\”:{\\“activeExperimentId\\”:8251671025,\\“variation\\”:\\“8247457437\\”,\\“conditional\\”:false,\\“manual\\”:true,\\“name\\”:\\“ABTST-75 Homepage Modal (Han)\\”}}]}",“vp”:“249x716”,“ds”:“249x7739”,“vid”:“195”,“sid”:“a2b7a72e-3237-47f9-be31-626f2cde9313”,“duid”:“7281e18d-eb2a-4f8f-9dc6-2cc103a49c5b”,“fp”:“767470003”,“stm”:“1499105351708”}]}’, headers=[‘Connection: upgrade’, ‘Host: sp.generalassemb.ly’, ‘X-Real-IP: 172.30.155.45’, ‘X-Forwarded-For: 96.248.54.41, 172.30.155.45’, ‘Content-Length: 1665’, ‘Accept: /’, ‘Accept-Encoding: gzip, deflate, br’, 'Accept-Language: en-US, en;q=0.8\
live on staging:
<script>
(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[];
p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments)
};p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1;
n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","//d1fc8wv8zag5ca.cloudfront.net/2.8.0/sp.js","GAplow"));
window.GAplow('newTracker', 'cf-hosted-v2.7.0', 'sp.generalassemb.ly', {
appId: 'WebSiteOld',
platform: 'web',
cookieDomain: '.generalassemb.ly',
discoverRootDomain: true,
cookieName: "sp",
encodeBase64: false,
respectDoNotTrack: true,
userFingerprint: true,
userFingerprintSeed: 6485926835,
pageUnloadTimer: 0,
forceSecureTracker: false,
stateStorageStrategy: 'cookie',
post: true,
bufferSize: 1,
maxPostBytes: 45000,
cookieLifetime: 86400 * 180,
contexts: {
webPage: true,
gaCookies: true,
optimizelySummary: true
}
});
window.GAplow('enableActivityTracking', 30, 30);
window.GAplow('trackPageView');
</script>