telemetrydeck / javascriptsdk Goto Github PK
View Code? Open in Web Editor NEWJavaScript Package for TelemetryDeck, a privacy-conscious analytics service for apps and websites.
Home Page: https://telemetrydeck.com
License: Other
JavaScript Package for TelemetryDeck, a privacy-conscious analytics service for apps and websites.
Home Page: https://telemetrydeck.com
License: Other
tried both ways exactly as described in the docs: importing the sdk via a script tag in the header of a site and importing the npm package and then building the site.
header script tag: no errors come up and the network tab shows:
Request URL: https://unpkg.com/@telemetrydeck/sdk/dist/telemetrydeck.min.js
Request Method: GET
Status Code: 302
Remote Address: [2606:4700::6810:7aaf]:443
Referrer Policy: strict-origin-when-cross-origin
no payload is sent
npm import:
import { TelemetryDeck } from 'telemetry-deck';
throws an error "dependency not found"
System: node 14.17.0, npm 7.24.0, vue with nuxt 2.15.7
I used the JavascriptSDK on a website where I don't have a user identifier (and don't want to have one). When reading the documentation at https://telemetrydeck.com/docs/guides/javascript-setup/ , I saw the section Optional: User Identifiers
and the sentence If you have none, consider anonymous
.
I assumed that I could avoid to give a user
and simply use something like:
td.push(["app", YOUR_APP_ID], ["signal"]);
This resulted in an error:
See corresponding documentation:
I would expect not to have an error if you pass no user. The backend should automatically assign a signal with no user to an anonymous user.
Hi ๐ ,
While following the guide at https://telemetrydeck.com/docs/guides/javascript-setup/ I added the TD script to the head section as instructed, however the script throws an error when loading:
...
<script src="https://unpkg.com/@telemetrydeck/sdk/dist/telemetrydeck.min.js" defer></script>
The error occurs before calling any of the setup functions (like adding app key and user identifier).
Could you help me spot what I'm doing wrong?
https://developer.mozilla.org/en-US/docs/web/api/document/cookie
We're splitting up the JavaScript SDK into two parts:
Refactor this repository into a package that is used in proper node projects.
And then notifify @timidak to update the React SDK
STR
only the first element of the pushed elements is called.
Example that will not send a signal:
// assume window.td is already loaded at this point
window.td.push(["app", "LOLOLOL"], ["user", "anon"], ["signal"]);
Since the Ingest v2 API now supports payloads as dictionaries, we should no longer convert the payload into a colon-separated array.
I am trying to integrate TelementryDeck into a simple static website (statushook.cool) and I get an error in the console of my developer tools and TelemetryDeck does not log any signals.
In Chrome the message is:
TypeError: Cannot read properties of undefined (reading 'digest')
In Safari 15.5 the message is:
TypeError: undefined is not an object (evaluating 'crypto.subtle.digest')
Is there a way t fix this? Feel free to poke into the website code to see how it's set up in the <head>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.