@dcard/web-ad-tracking-sdk
Advanced tools
Weekly downloads
Readme
The advertising tracking SDK for web environments powered by Dcard Inc.
yarn add @dcard/web-ad-tracking-sdk
import entry from '@dcard/web-ad-tracking-sdk'
// Substitute the real client ID for CLIENT_ID issued by Dcard.
entry('init', 'CLIENT_ID');
entry('track', 'PageView', { url: window.location.href });
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Embedding SDK example</title>
<script>!function(){var d=function d(a){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];d.queue.push([a].concat(n))};d.queue=[],window.dadk=window.dadk||d;var a=document.createElement("script");a.src="undefined"!=typeof URLSearchParams?"https://unpkg.com/@dcard/web-ad-tracking-sdk/build/dadk.iife.js":"https://unpkg.com/@dcard/web-ad-tracking-sdk/build/outdated-dadk.iife.js",document.head.appendChild(a),window.dadk("init","CLIENT_ID"),window.dadk("track","PageView",{url:window.location.href})}();
</script>
</head>
<body></body>
</html>
curl -Ls "https://unpkg.com/@dcard/web-ad-tracking-sdk/build/types/dadk.d.ts" -o types/dadk.d.ts
/// <reference path="types/dadk.d.ts" />
// Assume the types folder is at the same level as this script.
window.dadk('track', 'AddToCart', { 'contents': { test: '123' } })
https://unpkg.com/@dcard/web-ad-tracking-sdk/build/types/dadk.d.ts
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator
FAQs
The public advertising tracking SDK for web environments powered by Dcard Inc.
The npm package @dcard/web-ad-tracking-sdk receives a total of 461 weekly downloads. As such, @dcard/web-ad-tracking-sdk popularity was classified as not popular.
We found that @dcard/web-ad-tracking-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.