forked from snowplow/snowplow-javascript-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathasync.html
More file actions
81 lines (70 loc) · 3.54 KB
/
Copy pathasync.html
File metadata and controls
81 lines (70 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<!--
! Copyright (c) 2012 Snowplow Analytics Ltd. All rights reserved.
!
! This program is licensed to you under the Apache License Version 2.0,
! and you may not use this file except in compliance with the Apache License Version 2.0.
! You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
!
! Unless required by applicable law or agreed to in writing,
! software distributed under the Apache License Version 2.0 is distributed on an
! "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
! See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
-->
<html>
<head>
<title>Asynchronous ad tracking examples for snowplow.js</title>
</head>
<body>
<h1>Asynchronous ad tracking examples for snowplow.js</h1>
<p>
<img src="images/banner-1.png">
Banner ID 23, campaign ID 12, advertiser ID 201, user ID 1fd819ffc7267757ba681ff5daa3007e
<!-- Snowplow starts plowing -->
<script type="text/javascript">
window._snaq = window._snaq || [];
window._snaq.push(['setAccount', 'd3rkrsqld9gmqf']); // Update to your account ID or CloudFront distribution subdomain
window._snaq.push(['trackImpression', '23', '12', '201', '1fd819ffc7267757ba681ff5daa3007e']);
(function() {
var sp = document.createElement('script'); sp.type = 'text/javascript'; sp.async = true; sp.defer = true;
sp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://d1fc8wv8zag5ca.cloudfront.net/0.13.1/sp.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
})();
</script>
<!-- Snowplow stops plowing -->
</p>
<p>
<img src="images/banner-2.png">
Banner ID 127, no campaign or advertiser ID set, user ID 2de819ffc724367ba681ff5daa6777e
<!-- Snowplow starts plowing -->
<script type="text/javascript">
window._snaq = window._snaq || [];
window._snaq.push(['setAccount', 'd3rkrsqld9gmqf']); // Update to your account ID or CloudFront distribution subdomain
window._snaq.push(['trackImpression', '127', '', '', '2de819ffc724367ba681ff5daa6777e']);
(function() {
var sp = document.createElement('script'); sp.type = 'text/javascript'; sp.async = true; sp.defer = true;
sp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://d1fc8wv8zag5ca.cloudfront.net/0.13.1/sp.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
})();
</script>
<!-- Snowplow stops plowing -->
</p>
<p>
<img src="images/banner-3.png">
Banner ID 56ea2819ffc7da75f7e, no campaign, advertiser or user ID set
<!-- Snowplow starts plowing -->
<script type="text/javascript">
window._snaq = window._snaq || [];
window._snaq.push(['setAccount', 'd3rkrsqld9gmqf']); // Update to your account ID or CloudFront distribution subdomain
window._snaq.push(['trackImpression', '56ea2819ffc7da75f7e', '', '', '']);
(function() {
var sp = document.createElement('script'); sp.type = 'text/javascript'; sp.async = true; sp.defer = true;
sp.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://d1fc8wv8zag5ca.cloudfront.net/0.13.1/sp.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(sp, s);
})();
</script>
<!-- Snowplow stops plowing -->
</p>
</body>
</html>