-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
478d0d8
commit 42a53e7
Showing
4 changed files
with
2,540 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<html> | ||
|
||
<head> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> | ||
<script src="RudderClientBundle.js"></script> | ||
|
||
</head> | ||
|
||
<body> | ||
<h1>Page Loaded</h1> | ||
|
||
<script type="text/javascript"> | ||
//identify("[email protected]","testname4","111222", "6405167"); | ||
//alert('about to execute HS code'); | ||
//alert('HS code executed'); | ||
|
||
var handler = setInterval(function () { | ||
console.log(window.ECommerceParamNames) | ||
var loaded = !! window.RudderClient | ||
console.log("loaded==", loaded) | ||
if(!loaded) { | ||
return | ||
} | ||
var rudderClient = window.RudderClient | ||
|
||
var client = rudderClient.getInstance("1QbNPCBQp2RFWolFj2ZhXi2ER6a", RudderConfig.getDefaultConfig().setFlushQueueSize(1)); | ||
client.identify((new RudderTraits()). | ||
setName("Donald Duck"). | ||
setEmail("[email protected]"). | ||
setId(generateUUID())); | ||
clearInterval(handler) | ||
}, 3000) | ||
|
||
/* client.page(new RudderElementBuilder(). | ||
setProperty(new PagePropertyBuilder(). | ||
setTitle("Blog Page"). | ||
setUrl("https://rudderlabs.com"). | ||
setPath("/blogstest"). | ||
setReferrer("https://www.rudderlabs.com"). | ||
build(). | ||
getPropertyMap()). | ||
build()); */ | ||
/* client.track(new RudderElementBuilder(). | ||
setEvent("Order Updated"). | ||
setProperty(new OrderRefundedEvent(). | ||
setOrder(new ECommerceOrder(). | ||
setOrderId("Dummy Order 9"). | ||
setAffiliation("Dummy Affiliation 4"). | ||
setTotal(30). | ||
setRevenue(25.00). | ||
setShipping(3). | ||
setTax(2). | ||
setDiscount(2.5). | ||
setCoupon("hasbros"). | ||
setCurrency("USD"). | ||
addProduct(new ECommerceProduct().setName("Dummy Product 7")). | ||
addProduct(new ECommerceProduct().setName("Dummy Product 8").setSku("Dummy SKU 4"))). | ||
build().getPropertyMap()). | ||
build()); */ | ||
</script> | ||
<!--script type="text/javascript" id="hs-script-loader" async defer src="//js.hs-scripts.com/6405167.js" ></script> --> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.