Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit bbd4a44

Browse files
author
engineering@taplytics.com
committed
v2.13.0
1 parent c005a4a commit bbd4a44

File tree

3 files changed

+1
-71
lines changed

3 files changed

+1
-71
lines changed

DOCS.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Here are the APIs that Taplytics.js exposes:
1212
| [runningExperiments](#runningexperiments) | Taplytics running experiments |
1313
| [variable](#variable) | Taplytics variable |
1414
| [codeBlock](#codeblock) | Taplytics code block |
15-
| [startNewSession](#startNewSession) | Taplytics startNewSession |
1615

1716

1817
If you haven't already, check out our guide on how to get started with our Javascript SDK [here](https://taplytics.com/docs/javascript-sdk).
@@ -64,7 +63,6 @@ Taplytics.init("js-sdk-token", {
6463
log_level: 1
6564
});
6665

67-
6866
```
6967

7068

@@ -119,7 +117,6 @@ Taplytics.identify({
119117
friends_Count: 800
120118
});
121119

122-
123120
```
124121

125122

@@ -174,8 +171,6 @@ Taplytics.track("Purchased", 180.50, {
174171
Taplytics.track("Finished Tutorial", {
175172
time_on_tutorial: 100
176173
});
177-
178-
179174
```
180175

181176

@@ -236,7 +231,6 @@ Taplytics.page("Product Listings", "Shirts", {
236231
products_count: 150
237232
});
238233

239-
240234
```
241235

242236

@@ -262,7 +256,6 @@ Resets the user object and assumes the visitor is now anonymous. This can be use
262256

263257
Taplytics.reset();
264258

265-
266259
```
267260

268261
---
@@ -286,7 +279,6 @@ Taplytics.propertiesLoaded(function() {
286279
// properties have loaded
287280
});
288281

289-
290282
```
291283

292284
---
@@ -314,7 +306,6 @@ Taplytics.runningExperiments(function(expAndVars) {
314306
//};
315307
});
316308

317-
318309
```
319310

320311
---
@@ -376,23 +367,4 @@ Taplytics.codeBlock("JS CodeBlock", function() {
376367
// run your code here
377368
});
378369

379-
380-
```
381-
382-
---
383-
384-
### startNewSession
385-
386-
Usage: `Taplytics.startNewSession()`
387-
388-
Creates a new session for the user and fetches the new config data.
389-
390-
##### Example
391-
392-
```javascript
393-
394-
Taplytics.setUserAttributes({user_id: 'new_user!'})
395-
Taplytics.startNewSession()
396-
397-
398370
```

START.md

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ To fully utilize the power of Taplytics.js, you simply have to:
77
| 2 | [Identify Users](#2-identify-users) |
88
| 3 | [Track Events](#3-track-events) |
99
| 4 | [Track Page Views](#4-track-page-views) |
10-
| 5 | [Experiments](#5-experiments) |
11-
| 6 | [Opt-In/Out](#6-opt-inout) |
12-
| 7 | [Adobe Analytics Integration](#7-adobe-analytics-integration) |
13-
| 8 | [CNAME Aliasing](#8-cname-aliasing) |
1410

1511
## 1A Synchronous script loading
1612

@@ -231,41 +227,3 @@ function hasOptedOut() {
231227

232228
Adobe Analytics by default uses `s.t()` and `s.tl()` for tracking page views and link clicks. By setting `track_adobe_analytics` variable to true in `Taplytics.init` function, We inject our tracking code into the definitions of these functions. So whenever `s.t()` or `s.tl()` is called on the page, It first sends those events to Taplytics before sending them to Adobe Analytics.
233229
By default, Taplytics assumes adobe analytics tracking variable to be `s`. If you use a custom variable, then make sure to provide that during taplytics initialization with `adobe_obj_name` variable.
234-
235-
### 8. CNAME Aliasing
236-
237-
To prevent adblocks from blocking requests to our api servers, you can setup a CNAME on your domain that points to our API domains:
238-
239-
`https://api.taplytics.com`
240-
`https://ping.taplytics.com`
241-
242-
Once you have your CNAME setup, you can pass in as options to the sync script URL or as options in `Taplytics.init`.
243-
244-
```javascript
245-
246-
Taplytics.init("TOKEN", {
247-
alias_host: {
248-
api_host: 'https://api-alias.your-domain.com',
249-
ping_host: 'https://ping-alias.your-domain.com'
250-
}
251-
});
252-
253-
```
254-
255-
```HTML
256-
257-
<script type="text/javascript">
258-
var head = document.getElementsByTagName('head')[0];
259-
var script = document.createElement('script');
260-
script.type = 'text/javascript';
261-
const alias = {
262-
api_host: 'https://api-alias.your-domain.com',
263-
ping_host: 'https://ping-alias.your-domain.com'
264-
}
265-
const encodedAlias = encodeURIComponent(JSON.stringify(alias));
266-
script.src = `https://js.taplytics.com/jssdk/{YOUR_TOKEN}.min.js?alias_host=${encodedAlias}`;
267-
head.appendChild(script);
268-
</script>
269-
270-
271-
```

taplytics.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)