Skip to content

Commit

Permalink
updated write key
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav Kochar committed May 24, 2024
1 parent bac7f0e commit c4e8f03
Showing 1 changed file with 17 additions and 27 deletions.
44 changes: 17 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<script>
!function(){var i="analytics",analytics=window[i]=window[i]||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","screen","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware","register"];analytics.factory=function(e){return function(){if(window[i].initialized)return window[i][e].apply(window[i],arguments);var n=Array.prototype.slice.call(arguments);if(["track","screen","alias","group","page","identify"].indexOf(e)>-1){var c=document.querySelector("link[rel='canonical']");n.push({__t:"bpc",c:c&&c.getAttribute("href")||void 0,p:location.pathname,u:location.href,s:location.search,t:document.title,r:document.referrer})}n.unshift(e);analytics.push(n);return analytics}};for(var n=0;n<analytics.methods.length;n++){var key=analytics.methods[n];analytics[key]=analytics.factory(key)}analytics.load=function(key,n){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.setAttribute("data-global-segment-analytics-key",i);t.src="https://cdn.segment.build/analytics.js/v1/" + key + "/analytics.min.js";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r);analytics._loadOptions=n};analytics._writeKey="HcLBX7oZAGqCB8D2l2Ct5SPG3bXAps0m";;analytics.SNIPPET_VERSION="5.2.0";
analytics.load("HcLBX7oZAGqCB8D2l2Ct5SPG3bXAps0m");
analytics.load("3LWb6LjjUoK2vrI8BIzATYruIekDfIaK");
analytics.page();
}}();
</script>
Expand Down Expand Up @@ -73,33 +73,23 @@ <h1>Sign up for the latest information on sneaker drops!</h1>
// // Identify call

for(let i=1;i<=count;i++){
let val=generateString(4).trim();
// analytics.identify(`user-${generateString(5)}`, {
// email: `${val}@example.com.in `,
// "first_name": `New Updated-John-${val}`,
// "last_name": "New Updated Doe",
// "address": {
// "city": "San Francisco",
// "country": "USA",
// "postal_code": "600001",
// "state": "California",
// "street": "Vancover st"
// },
// "graduation_date": "1664533942262",
// "lifecyclestage": "subscriber",
// "company": "Segment",
// "phone": "+13134561129",
// "website": "segment.inc1"
// });
// let val=generateString(4).trim();
analytics.identify(`user-jadeja-${i}`, {
"address": "563 Unions St",
"city": "San Francisco",
"email": `jadeja.sinh+${i}@unthinkable.co`,
"first_name": "Jadeja",
"last_name": "sinh",
"phone": "5712670841",
"postal": "94118",
"state": "California"

});

analytics.track("Example Event", {
"email":`${val}@example.com`,
"properties": {
"property1": 1,
"property2": "test",
"property3": true
},
"userId": `user-${generateString(5)}`,
analytics.track("Unthinkable Sample Event", {
"email":`jadeja.sinh+${i}@unthinkable.co`,
"properties": {},
"userId": `user-jadeja-${i}`,
});
}
// // Sign-up Track call
Expand Down

0 comments on commit c4e8f03

Please sign in to comment.