-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdigital-turbine-journeys.html
42 lines (40 loc) · 5.47 KB
/
digital-turbine-journeys.html
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
<html>
<head>
<meta name="viewport" content="width=device-width">
<script>
(function(b,r,a,n,c,h,_,s,d,k){if(!b[n]||!b[n]._q){for(;s<_.length;)c(h,_[s++]);d=r.createElement(a);d.async=1;d.src="https://cdn.branch.io/branch-latest.min.js";k=r.getElementsByTagName(a)[0];k.parentNode.insertBefore(d,k);b[n]=h}})(window,document,"script","branch",function(b,r){b[r]=function(){b._q.push([r,arguments])}},{_q:[],_v:1},"addListener applyCode autoAppIndex banner closeBanner closeJourney creditHistory credits data deepview deepviewCta first getCode init link logout redeem referrals removeListener sendSMS setBranchViewData setIdentity track validateCode trackCommerceEvent".split(" "), 0);
var options = { no_journeys: true };
branch.init('key_live_kkPJT9dIycNI92REY9JwDglbAwi618f2', options); // this key corresponds to the Digital Turbine Journeys Test dashboard
if (navigator.userAgent.match(/Android/i))
{
branch.link({
campaign: 'My Campaign Name', // analytics tag representing the journey name
channel: 'dt-single-tap', // analytics tag that will populate in the dashboard
feature: 'journeys', // do not remove, this will ensure analytics appear in the proper section of the branch dash
data: {
'$canonical_url': window.location, // include this for clients who use web url routing
'$deeplink_path': 'property/listing/12345', // include this for clients who use deeplink_path routing. Typically only one of "$canonical_url" and "deeplink_path" will be used
'$3p': 'a_digital_turbine' // do not remove, this will ensure postbacks are sent to DT endpoints on event completion
}
}, function(err, link) {
console.log(err, link);
var fullLink = 'https://delivers.dtignight.com/abfjsaf?&dvURL=' + encodeURI(link) // TODO: modify the dt base url
branch.setBranchViewData({
data: {
'$journeys_cta': fullLink
}
});
branch.track('pageview');
});
}
</script>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent vulputate massa magna, vitae consequat lorem finibus a. Nulla eleifend quam a leo molestie, vitae tristique arcu faucibus. Pellentesque enim turpis, mattis ut metus a, consequat pharetra nulla. Vivamus elementum lorem sit amet porttitor aliquam. Pellentesque ornare ligula urna, vitae hendrerit nunc euismod vel. Integer id augue enim. Nunc sit amet arcu massa. Cras sem nulla, malesuada a metus eget, porttitor rhoncus magna. Phasellus pretium dolor sit amet consequat porttitor. Aliquam in purus ut sapien efficitur dignissim. Vivamus quis porta ex. Integer justo erat, cursus a accumsan non, laoreet ut sem. Cras a malesuada ante.
Mauris in quam vestibulum, tincidunt dolor vitae, laoreet quam. Integer rhoncus sodales massa, vel consectetur sapien faucibus id. Donec convallis hendrerit velit, sodales volutpat lacus sodales vitae. Phasellus lobortis nec ligula id elementum. Ut euismod eros et ultricies pulvinar. Suspendisse vitae fringilla nulla. Nulla augue felis, dignissim et vestibulum quis, rhoncus nec turpis. Aenean sit amet semper mauris, eget porta lorem. Curabitur congue mattis nisi, ut placerat arcu dignissim at. Nunc neque elit, pharetra quis arcu egestas, posuere pulvinar tellus. Fusce a efficitur tellus, et egestas erat. Duis gravida eu nisl non posuere. Mauris vitae tincidunt sapien. Duis velit turpis, pulvinar id pulvinar a, varius id nunc.
Mauris nisl mi, suscipit dictum enim eu, commodo venenatis nisl. Maecenas vitae ex sem. Maecenas accumsan luctus sapien, non ornare diam placerat et. Maecenas pulvinar posuere ligula sit amet tempor. Vivamus massa felis, ultrices eu bibendum nec, tristique et elit. Maecenas eu arcu quam. Proin dignissim sagittis risus, a sagittis orci rutrum ac. Mauris ultrices sit amet ante eu sollicitudin. Donec id leo interdum, aliquam nisl in, dapibus sapien. Ut vitae nibh erat. Proin faucibus porta nibh luctus venenatis. Nullam vitae pretium augue, ut efficitur eros. Vestibulum eu auctor quam. Nam eget nunc vel quam dignissim tincidunt.
Cras at dignissim tortor, non feugiat purus. Maecenas volutpat nulla id metus placerat vehicula. Pellentesque libero risus, mattis sit amet urna id, scelerisque cursus massa. Praesent venenatis orci a nisi interdum, at hendrerit felis ullamcorper. Quisque eget justo mattis, rutrum lacus vel, euismod odio. Ut tincidunt arcu sit amet tincidunt laoreet. Ut ac nunc sed eros luctus fermentum non eget nibh. Ut aliquet dolor vitae egestas varius.
Ut commodo et nibh ac ultricies. Etiam mattis eleifend diam, eu sagittis ligula malesuada in. In id aliquam libero, ut scelerisque massa. Integer eu tincidunt diam. Duis luctus magna purus, eu placerat massa laoreet eu. Etiam fermentum quis lorem id congue. Maecenas commodo massa sed hendrerit egestas. Vestibulum sodales est arcu, ac maximus nibh maximus sed.</p>
<a href="https://delivers.dtignite.com/v2/delivers/clickAd.jsp?siteId=11365&campaignId=30114&tsti=false&dvURL=https%3A%2F%2Fbranchster.app.link%2FI95mkcF8wab%3F%25243p%3Da_singletap%26%2524aaid%3D%24%7Brequest.device.gaid%7D%26%2524idfa%3D%24%7Brequest.device.idfa%7D%26cp_3%3D%7Bcp_3%7D%26device_ip%3D%24%7Brequest.device.ip%7D%26user_agent%3D%24%7Brequest.device.userAgent%7D%26~ad_set_id%3D%24%7Blineitem.id%7D%26~campaign%3D%24%7Bresponse.campaignName%7D%26~campaign_id%3D%24%7Bresponse.campaignId%7D%26~click_id%3D%24%7Bresponse.impressionId%7D%26~secondary_publisher%3D%24%7Brequest.app.bundle%7D">Manual Test Link</a>
</body>
</html>