iureiure 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.editorconfig +21 -0
- package/.env.example +8 -0
- package/.eslintignore +19 -0
- package/.eslintrc.json +155 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +50 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- package/.github/dependabot.yml +6 -0
- package/.github/pull_request_template.md +23 -0
- package/.github/workflows/build-and-quality-checks-v3.yml +51 -0
- package/.github/workflows/check_pr_title.yml +17 -0
- package/.github/workflows/codeql-analysis.yml +70 -0
- package/.github/workflows/create-hotfix-branch-v3.yml +21 -0
- package/.github/workflows/deploy-beta-v3.yml +82 -0
- package/.github/workflows/deploy-dev-v3.yml +71 -0
- package/.github/workflows/deploy-npm-v3.yml +169 -0
- package/.github/workflows/deploy-prod-v3.yml +194 -0
- package/.github/workflows/deploy-sanity-suite.yml +80 -0
- package/.github/workflows/deploy-staging-v3.yml +99 -0
- package/.github/workflows/draft-new-release-v3.yml +103 -0
- package/.github/workflows/housekeeping.yaml +40 -0
- package/.github/workflows/publish-new-release-v3.yml +136 -0
- package/.github/workflows/rollback-v3.yml +190 -0
- package/.github/workflows/test-v3.yml +60 -0
- package/.husky/commit-msg +1 -0
- package/.husky/pre-commit +1 -0
- package/.jscpd.json +17 -0
- package/.nvmrc +1 -0
- package/.nxignore +3 -0
- package/.prettierignore +18 -0
- package/.prettierrc +13 -0
- package/.versionrc +8 -0
- package/CODEOWNERS +2 -0
- package/__mocks__/BraveBrowser.js +9 -0
- package/assets/integrations/AdobeAnalytics/adobe-analytics-js-heartbeat.js +193 -0
- package/assets/integrations/AdobeAnalytics/adobe-analytics-js.js +116 -0
- package/assets/rs-logo-full-light.jpg +0 -0
- package/babel.config.json +14 -0
- package/commitlint.config.js +27 -0
- package/examples/angular/sample-app/.editorconfig +16 -0
- package/examples/angular/sample-app/README.md +27 -0
- package/examples/angular/sample-app/angular.json +83 -0
- package/examples/angular/sample-app/package-lock.json +12552 -0
- package/examples/angular/sample-app/package.json +39 -0
- package/examples/angular/sample-app/src/app/app-routing.module.ts +10 -0
- package/examples/angular/sample-app/src/app/app.component.css +0 -0
- package/examples/angular/sample-app/src/app/app.component.html +508 -0
- package/examples/angular/sample-app/src/app/app.component.spec.ts +33 -0
- package/examples/angular/sample-app/src/app/app.component.ts +104 -0
- package/examples/angular/sample-app/src/app/app.module.ts +12 -0
- package/examples/angular/sample-app/src/assets/.gitkeep +0 -0
- package/examples/angular/sample-app/src/favicon.ico +0 -0
- package/examples/angular/sample-app/src/index.html +45 -0
- package/examples/angular/sample-app/src/main.ts +7 -0
- package/examples/angular/sample-app/src/styles.css +1 -0
- package/examples/angular/sample-app/tsconfig.app.json +10 -0
- package/examples/angular/sample-app/tsconfig.json +30 -0
- package/examples/angular/sample-app/tsconfig.spec.json +9 -0
- package/examples/chrome-extension/USAGE.md +140 -0
- package/examples/chrome-extension/background-script/LICENSE +21 -0
- package/examples/chrome-extension/background-script/README.md +105 -0
- package/examples/chrome-extension/background-script/foreground.js +7 -0
- package/examples/chrome-extension/background-script/logo/logo-128.png +0 -0
- package/examples/chrome-extension/background-script/logo/logo-16.png +0 -0
- package/examples/chrome-extension/background-script/logo/logo-48.png +0 -0
- package/examples/chrome-extension/background-script/logo/logo.svg +138 -0
- package/examples/chrome-extension/background-script/manifest.json +36 -0
- package/examples/chrome-extension/background-script/popup/popup.css +11 -0
- package/examples/chrome-extension/background-script/popup/popup.html +11 -0
- package/examples/chrome-extension/background-script/rudderAnalytics.js +5133 -0
- package/examples/chrome-extension/background-script/service-worker.js +28 -0
- package/examples/chrome-extension/background-script/settings/settings.css +8 -0
- package/examples/chrome-extension/background-script/settings/settings.html +12 -0
- package/examples/chrome-extension/background-script-websockets/LICENSE +21 -0
- package/examples/chrome-extension/background-script-websockets/README.md +101 -0
- package/examples/chrome-extension/background-script-websockets/foreground.js +7 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo-128.png +0 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo-16.png +0 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo-48.png +0 -0
- package/examples/chrome-extension/background-script-websockets/logo/logo.svg +138 -0
- package/examples/chrome-extension/background-script-websockets/manifest.json +37 -0
- package/examples/chrome-extension/background-script-websockets/popup/popup.css +11 -0
- package/examples/chrome-extension/background-script-websockets/popup/popup.html +11 -0
- package/examples/chrome-extension/background-script-websockets/rudderAnalytics.js +5133 -0
- package/examples/chrome-extension/background-script-websockets/service-worker.js +60 -0
- package/examples/chrome-extension/background-script-websockets/settings/settings.css +8 -0
- package/examples/chrome-extension/background-script-websockets/settings/settings.html +12 -0
- package/examples/chrome-extension/content-script-v1.1/LICENSE +21 -0
- package/examples/chrome-extension/content-script-v1.1/README.md +105 -0
- package/examples/chrome-extension/content-script-v1.1/foreground.js +65 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo-128.png +0 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo-16.png +0 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo-48.png +0 -0
- package/examples/chrome-extension/content-script-v1.1/logo/logo.svg +138 -0
- package/examples/chrome-extension/content-script-v1.1/manifest.json +35 -0
- package/examples/chrome-extension/content-script-v1.1/popup/popup.css +11 -0
- package/examples/chrome-extension/content-script-v1.1/popup/popup.html +11 -0
- package/examples/chrome-extension/content-script-v1.1/service-worker-utils.js +17 -0
- package/examples/chrome-extension/content-script-v1.1/service-worker.js +12 -0
- package/examples/chrome-extension/content-script-v1.1/settings/settings.css +8 -0
- package/examples/chrome-extension/content-script-v1.1/settings/settings.html +12 -0
- package/examples/chrome-extension/content-script-v3/LICENSE +21 -0
- package/examples/chrome-extension/content-script-v3/README.md +105 -0
- package/examples/chrome-extension/content-script-v3/foreground.js +3875 -0
- package/examples/chrome-extension/content-script-v3/logo/logo-128.png +0 -0
- package/examples/chrome-extension/content-script-v3/logo/logo-16.png +0 -0
- package/examples/chrome-extension/content-script-v3/logo/logo-48.png +0 -0
- package/examples/chrome-extension/content-script-v3/logo/logo.svg +138 -0
- package/examples/chrome-extension/content-script-v3/manifest.json +35 -0
- package/examples/chrome-extension/content-script-v3/popup/popup.css +11 -0
- package/examples/chrome-extension/content-script-v3/popup/popup.html +11 -0
- package/examples/chrome-extension/content-script-v3/service-worker-utils.js +17 -0
- package/examples/chrome-extension/content-script-v3/service-worker.js +12 -0
- package/examples/chrome-extension/content-script-v3/settings/settings.css +8 -0
- package/examples/chrome-extension/content-script-v3/settings/settings.html +12 -0
- package/examples/chrome-extension/websocket-server/server.mjs +19 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/README.md +49 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/gatsby-config.ts +27 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/package-lock.json +16070 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/package.json +31 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/src/images/icon.png +0 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/src/pages/404.tsx +49 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/src/pages/index.tsx +193 -0
- package/examples/gatsby/sample-gatsby-plugin-usage/tsconfig.json +105 -0
- package/examples/gatsby/sample-gatsby-site/README.md +49 -0
- package/examples/gatsby/sample-gatsby-site/gatsby-config.ts +15 -0
- package/examples/gatsby/sample-gatsby-site/package-lock.json +15916 -0
- package/examples/gatsby/sample-gatsby-site/package.json +37 -0
- package/examples/gatsby/sample-gatsby-site/src/images/icon.png +0 -0
- package/examples/gatsby/sample-gatsby-site/src/pages/404.tsx +49 -0
- package/examples/gatsby/sample-gatsby-site/src/pages/index.tsx +209 -0
- package/examples/gatsby/sample-gatsby-site/tsconfig.json +105 -0
- package/examples/html/autotrack-test.html +94 -0
- package/examples/html/ecomm_test.html +358 -0
- package/examples/html/script-test.html +968 -0
- package/examples/html/segment.html +177 -0
- package/examples/html/test_poster.jpg +0 -0
- package/examples/nextjs/hooks/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/hooks/sample-app/README.md +36 -0
- package/examples/nextjs/hooks/sample-app/next.config.js +4 -0
- package/examples/nextjs/hooks/sample-app/package-lock.json +4766 -0
- package/examples/nextjs/hooks/sample-app/package.json +28 -0
- package/examples/nextjs/hooks/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/hooks/sample-app/public/next.svg +1 -0
- package/examples/nextjs/hooks/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/hooks/sample-app/src/app/favicon.ico +0 -0
- package/examples/nextjs/hooks/sample-app/src/app/globals.css +27 -0
- package/examples/nextjs/hooks/sample-app/src/app/layout.tsx +55 -0
- package/examples/nextjs/hooks/sample-app/src/app/page.tsx +137 -0
- package/examples/nextjs/hooks/sample-app/src/app/useRudderAnalytics.ts +29 -0
- package/examples/nextjs/hooks/sample-app/tailwind.config.ts +19 -0
- package/examples/nextjs/hooks/sample-app/tsconfig.json +27 -0
- package/examples/nextjs/js/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/js/sample-app/README.md +36 -0
- package/examples/nextjs/js/sample-app/jsconfig.json +7 -0
- package/examples/nextjs/js/sample-app/next.config.js +4 -0
- package/examples/nextjs/js/sample-app/package-lock.json +4710 -0
- package/examples/nextjs/js/sample-app/package.json +24 -0
- package/examples/nextjs/js/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/js/sample-app/public/next.svg +1 -0
- package/examples/nextjs/js/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/js/sample-app/src/app/favicon.ico +0 -0
- package/examples/nextjs/js/sample-app/src/app/globals.css +27 -0
- package/examples/nextjs/js/sample-app/src/app/layout.js +54 -0
- package/examples/nextjs/js/sample-app/src/app/page.js +146 -0
- package/examples/nextjs/js/sample-app/tailwind.config.js +17 -0
- package/examples/nextjs/page-router/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/page-router/sample-app/README.md +40 -0
- package/examples/nextjs/page-router/sample-app/next.config.js +6 -0
- package/examples/nextjs/page-router/sample-app/package-lock.json +4270 -0
- package/examples/nextjs/page-router/sample-app/package.json +28 -0
- package/examples/nextjs/page-router/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/page-router/sample-app/public/favicon.ico +0 -0
- package/examples/nextjs/page-router/sample-app/public/next.svg +1 -0
- package/examples/nextjs/page-router/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/page-router/sample-app/src/pages/_app.tsx +35 -0
- package/examples/nextjs/page-router/sample-app/src/pages/_document.tsx +49 -0
- package/examples/nextjs/page-router/sample-app/src/pages/api/hello.ts +10 -0
- package/examples/nextjs/page-router/sample-app/src/pages/index.tsx +138 -0
- package/examples/nextjs/page-router/sample-app/src/pages/page2.tsx +18 -0
- package/examples/nextjs/page-router/sample-app/src/styles/globals.css +27 -0
- package/examples/nextjs/page-router/sample-app/src/useRudderAnalytics.ts +29 -0
- package/examples/nextjs/page-router/sample-app/tailwind.config.ts +19 -0
- package/examples/nextjs/page-router/sample-app/tsconfig.json +22 -0
- package/examples/nextjs/ts/sample-app/.eslintrc.json +3 -0
- package/examples/nextjs/ts/sample-app/README.md +36 -0
- package/examples/nextjs/ts/sample-app/next.config.js +4 -0
- package/examples/nextjs/ts/sample-app/package-lock.json +4766 -0
- package/examples/nextjs/ts/sample-app/package.json +28 -0
- package/examples/nextjs/ts/sample-app/postcss.config.js +6 -0
- package/examples/nextjs/ts/sample-app/public/next.svg +1 -0
- package/examples/nextjs/ts/sample-app/public/vercel.svg +1 -0
- package/examples/nextjs/ts/sample-app/src/app/favicon.ico +0 -0
- package/examples/nextjs/ts/sample-app/src/app/globals.css +27 -0
- package/examples/nextjs/ts/sample-app/src/app/layout.tsx +55 -0
- package/examples/nextjs/ts/sample-app/src/app/page.tsx +147 -0
- package/examples/nextjs/ts/sample-app/tailwind.config.ts +19 -0
- package/examples/nextjs/ts/sample-app/tsconfig.json +27 -0
- package/examples/reactjs/hooks/sample-app/README.md +46 -0
- package/examples/reactjs/hooks/sample-app/package-lock.json +16203 -0
- package/examples/reactjs/hooks/sample-app/package.json +47 -0
- package/examples/reactjs/hooks/sample-app/public/favicon.ico +0 -0
- package/examples/reactjs/hooks/sample-app/public/index.html +75 -0
- package/examples/reactjs/hooks/sample-app/public/logo192.png +0 -0
- package/examples/reactjs/hooks/sample-app/public/logo512.png +0 -0
- package/examples/reactjs/hooks/sample-app/public/manifest.json +25 -0
- package/examples/reactjs/hooks/sample-app/public/robots.txt +3 -0
- package/examples/reactjs/hooks/sample-app/src/App.css +38 -0
- package/examples/reactjs/hooks/sample-app/src/App.test.tsx +9 -0
- package/examples/reactjs/hooks/sample-app/src/App.tsx +95 -0
- package/examples/reactjs/hooks/sample-app/src/index.css +32 -0
- package/examples/reactjs/hooks/sample-app/src/index.tsx +19 -0
- package/examples/reactjs/hooks/sample-app/src/logo.svg +1 -0
- package/examples/reactjs/hooks/sample-app/src/react-app-env.d.ts +1 -0
- package/examples/reactjs/hooks/sample-app/src/reportWebVitals.ts +15 -0
- package/examples/reactjs/hooks/sample-app/src/setupTests.ts +5 -0
- package/examples/reactjs/hooks/sample-app/src/useRudderAnalytics.ts +23 -0
- package/examples/reactjs/hooks/sample-app/tsconfig.json +20 -0
- package/examples/reactjs/js/sample-app/README.md +70 -0
- package/examples/reactjs/js/sample-app/package-lock.json +17665 -0
- package/examples/reactjs/js/sample-app/package.json +42 -0
- package/examples/reactjs/js/sample-app/public/favicon.ico +0 -0
- package/examples/reactjs/js/sample-app/public/index.html +75 -0
- package/examples/reactjs/js/sample-app/public/logo192.png +0 -0
- package/examples/reactjs/js/sample-app/public/logo512.png +0 -0
- package/examples/reactjs/js/sample-app/public/manifest.json +25 -0
- package/examples/reactjs/js/sample-app/public/robots.txt +3 -0
- package/examples/reactjs/js/sample-app/src/App.css +38 -0
- package/examples/reactjs/js/sample-app/src/App.js +101 -0
- package/examples/reactjs/js/sample-app/src/App.test.js +8 -0
- package/examples/reactjs/js/sample-app/src/index.css +34 -0
- package/examples/reactjs/js/sample-app/src/index.js +17 -0
- package/examples/reactjs/js/sample-app/src/logo.svg +1 -0
- package/examples/reactjs/js/sample-app/src/reportWebVitals.js +13 -0
- package/examples/reactjs/js/sample-app/src/setupTests.js +5 -0
- package/examples/reactjs/ts/sample-app/README.md +46 -0
- package/examples/reactjs/ts/sample-app/package-lock.json +17653 -0
- package/examples/reactjs/ts/sample-app/package.json +47 -0
- package/examples/reactjs/ts/sample-app/public/favicon.ico +0 -0
- package/examples/reactjs/ts/sample-app/public/index.html +75 -0
- package/examples/reactjs/ts/sample-app/public/logo192.png +0 -0
- package/examples/reactjs/ts/sample-app/public/logo512.png +0 -0
- package/examples/reactjs/ts/sample-app/public/manifest.json +25 -0
- package/examples/reactjs/ts/sample-app/public/robots.txt +3 -0
- package/examples/reactjs/ts/sample-app/src/App.css +38 -0
- package/examples/reactjs/ts/sample-app/src/App.test.tsx +9 -0
- package/examples/reactjs/ts/sample-app/src/App.tsx +101 -0
- package/examples/reactjs/ts/sample-app/src/index.css +34 -0
- package/examples/reactjs/ts/sample-app/src/index.tsx +19 -0
- package/examples/reactjs/ts/sample-app/src/logo.svg +1 -0
- package/examples/reactjs/ts/sample-app/src/react-app-env.d.ts +1 -0
- package/examples/reactjs/ts/sample-app/src/reportWebVitals.ts +15 -0
- package/examples/reactjs/ts/sample-app/src/setupTests.ts +5 -0
- package/examples/reactjs/ts/sample-app/tsconfig.json +20 -0
- package/examples/reactjs/vite/sample-app/.eslintrc.cjs +18 -0
- package/examples/reactjs/vite/sample-app/README.md +27 -0
- package/examples/reactjs/vite/sample-app/index.html +45 -0
- package/examples/reactjs/vite/sample-app/package-lock.json +3427 -0
- package/examples/reactjs/vite/sample-app/package.json +29 -0
- package/examples/reactjs/vite/sample-app/public/vite.svg +1 -0
- package/examples/reactjs/vite/sample-app/src/App.css +42 -0
- package/examples/reactjs/vite/sample-app/src/App.tsx +105 -0
- package/examples/reactjs/vite/sample-app/src/assets/react.svg +1 -0
- package/examples/reactjs/vite/sample-app/src/index.css +70 -0
- package/examples/reactjs/vite/sample-app/src/main.tsx +10 -0
- package/examples/reactjs/vite/sample-app/src/vite-env.d.ts +1 -0
- package/examples/reactjs/vite/sample-app/tsconfig.json +25 -0
- package/examples/reactjs/vite/sample-app/tsconfig.node.json +10 -0
- package/examples/reactjs/vite/sample-app/vite.config.ts +7 -0
- package/examples/serverless/USAGE.md +85 -0
- package/examples/serverless/cloudflare-worker/.editorconfig +13 -0
- package/examples/serverless/cloudflare-worker/.prettierrc +6 -0
- package/examples/serverless/cloudflare-worker/package-lock.json +2646 -0
- package/examples/serverless/cloudflare-worker/package.json +18 -0
- package/examples/serverless/cloudflare-worker/src/worker.js +54 -0
- package/examples/serverless/cloudflare-worker/wrangler.toml +52 -0
- package/examples/serverless/vercel-edge/.eslintrc.json +3 -0
- package/examples/serverless/vercel-edge/README.md +34 -0
- package/examples/serverless/vercel-edge/app/api/edge-function-example/route.ts +32 -0
- package/examples/serverless/vercel-edge/app/favicon.ico +0 -0
- package/examples/serverless/vercel-edge/app/globals.css +27 -0
- package/examples/serverless/vercel-edge/app/layout.tsx +22 -0
- package/examples/serverless/vercel-edge/app/page.tsx +113 -0
- package/examples/serverless/vercel-edge/next.config.js +4 -0
- package/examples/serverless/vercel-edge/package-lock.json +5351 -0
- package/examples/serverless/vercel-edge/package.json +26 -0
- package/examples/serverless/vercel-edge/postcss.config.js +6 -0
- package/examples/serverless/vercel-edge/public/next.svg +1 -0
- package/examples/serverless/vercel-edge/public/vercel.svg +1 -0
- package/examples/serverless/vercel-edge/tailwind.config.ts +19 -0
- package/examples/serverless/vercel-edge/tsconfig.json +27 -0
- package/examples/symfony/USAGE.md +57 -0
- package/examples/symfony/sample/.env.test +6 -0
- package/examples/symfony/sample/assets/app.js +15 -0
- package/examples/symfony/sample/assets/styles/app.css +3 -0
- package/examples/symfony/sample/compose.override.yaml +14 -0
- package/examples/symfony/sample/compose.yaml +21 -0
- package/examples/symfony/sample/composer.json +104 -0
- package/examples/symfony/sample/composer.lock +9921 -0
- package/examples/symfony/sample/config/bundles.php +15 -0
- package/examples/symfony/sample/config/packages/cache.yaml +19 -0
- package/examples/symfony/sample/config/packages/debug.yaml +5 -0
- package/examples/symfony/sample/config/packages/doctrine.yaml +43 -0
- package/examples/symfony/sample/config/packages/doctrine_migrations.yaml +6 -0
- package/examples/symfony/sample/config/packages/framework.yaml +24 -0
- package/examples/symfony/sample/config/packages/mailer.yaml +3 -0
- package/examples/symfony/sample/config/packages/messenger.yaml +24 -0
- package/examples/symfony/sample/config/packages/monolog.yaml +61 -0
- package/examples/symfony/sample/config/packages/notifier.yaml +12 -0
- package/examples/symfony/sample/config/packages/routing.yaml +12 -0
- package/examples/symfony/sample/config/packages/security.yaml +40 -0
- package/examples/symfony/sample/config/packages/translation.yaml +13 -0
- package/examples/symfony/sample/config/packages/twig.yaml +6 -0
- package/examples/symfony/sample/config/packages/validator.yaml +13 -0
- package/examples/symfony/sample/config/packages/web_profiler.yaml +15 -0
- package/examples/symfony/sample/config/packages/webpack_encore.yaml +45 -0
- package/examples/symfony/sample/config/preload.php +5 -0
- package/examples/symfony/sample/config/routes/framework.yaml +4 -0
- package/examples/symfony/sample/config/routes/web_profiler.yaml +8 -0
- package/examples/symfony/sample/config/routes.yaml +7 -0
- package/examples/symfony/sample/config/services.yaml +24 -0
- package/examples/symfony/sample/package-lock.json +8082 -0
- package/examples/symfony/sample/package.json +23 -0
- package/examples/symfony/sample/phpunit.xml.dist +38 -0
- package/examples/symfony/sample/public/index.php +9 -0
- package/examples/symfony/sample/src/Controller/LuckyController.php +18 -0
- package/examples/symfony/sample/src/Kernel.php +11 -0
- package/examples/symfony/sample/symfony.lock +277 -0
- package/examples/symfony/sample/templates/base.html.twig +19 -0
- package/examples/symfony/sample/templates/lucky/number.html.twig +20 -0
- package/examples/symfony/sample/tests/bootstrap.php +11 -0
- package/examples/symfony/sample/webpack.config.js +72 -0
- package/examples/v1/index.html +229 -0
- package/examples/v1.1/index.html +229 -0
- package/examples/v2-beacon/index.html +229 -0
- package/examples/v3/index.html +266 -0
- package/examples/v3-beacon/index.html +270 -0
- package/examples/v3-legacy/index.html +266 -0
- package/examples/v3-legacy-minimum-plugins/index.html +270 -0
- package/examples/v3-minimum-plugins/index.html +270 -0
- package/jest/jest.global-setup.js +3 -0
- package/jest/jest.polyfills.js +18 -0
- package/jest/jest.setup-dom.js +54 -0
- package/jest/jsdom-extended.js +26 -0
- package/jest.config.ts +5 -0
- package/jest.preset.js +83 -0
- package/migrations.json +34 -0
- package/nx.json +69 -0
- package/package.json +170 -0
- package/packages/analytics-js/.env.example +9 -0
- package/packages/analytics-js/.jscpd.json +17 -0
- package/packages/analytics-js/.size-limit.js +31 -0
- package/packages/analytics-js/CHANGELOG.md +283 -0
- package/packages/analytics-js/CHANGELOG_LATEST.md +2 -0
- package/packages/analytics-js/LICENSE +21 -0
- package/packages/analytics-js/README.md +100 -0
- package/packages/analytics-js/__fixtures__/fixtures.ts +765 -0
- package/packages/analytics-js/__fixtures__/msw.handlers.ts +82 -0
- package/packages/analytics-js/__fixtures__/msw.server.ts +6 -0
- package/packages/analytics-js/__mocks__/remotePlugins/BeaconQueue.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/Bugsnag.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/CustomConsentManager.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/DeviceModeDestinations.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/DeviceModeTransformation.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/ErrorReporting.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/ExternalAnonymousId.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/GoogleLinker.ts +8 -0
- package/packages/analytics-js/__mocks__/remotePlugins/KetchConsentManager.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/NativeDestinationQueue.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/OneTrustConsentManager.ts +10 -0
- package/packages/analytics-js/__mocks__/remotePlugins/StorageEncryption.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/StorageEncryptionLegacy.ts +9 -0
- package/packages/analytics-js/__mocks__/remotePlugins/StorageMigrator.ts +8 -0
- package/packages/analytics-js/__mocks__/remotePlugins/XhrQueue.ts +9 -0
- package/packages/analytics-js/__tests__/app/RudderAnalytics.test.ts +286 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/adBlockers.test.ts +78 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/browser.test.ts +24 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/clientHint.test.ts +87 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/dom.test.ts +13 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/screen.test.ts +13 -0
- package/packages/analytics-js/__tests__/components/capabilitiesManager/detection/storage.test.ts +27 -0
- package/packages/analytics-js/__tests__/components/configManager/ConfigManager.test.ts +222 -0
- package/packages/analytics-js/__tests__/components/configManager/cdnPaths.test.ts +70 -0
- package/packages/analytics-js/__tests__/components/configManager/commonUtil.test.ts +531 -0
- package/packages/analytics-js/__tests__/components/configManager/dataPlaneResolver.test.ts +163 -0
- package/packages/analytics-js/__tests__/components/configManager/validate.test.ts +31 -0
- package/packages/analytics-js/__tests__/components/core/Analytics.test.ts +628 -0
- package/packages/analytics-js/__tests__/components/eventManager/EventManager.test.ts +78 -0
- package/packages/analytics-js/__tests__/components/eventManager/RudderEventFactory.test.ts +514 -0
- package/packages/analytics-js/__tests__/components/eventManager/utilities.test.ts +1043 -0
- package/packages/analytics-js/__tests__/components/eventRepository/EventRepository.test.ts +324 -0
- package/packages/analytics-js/__tests__/components/pluginsManager/.gitkeep +0 -0
- package/packages/analytics-js/__tests__/components/preloadBuffer/index.test.ts +130 -0
- package/packages/analytics-js/__tests__/components/userSessionManager/UserSessionManager.test.ts +1386 -0
- package/packages/analytics-js/__tests__/components/userSessionManager/utils.test.ts +103 -0
- package/packages/analytics-js/__tests__/components/utilities/consent.test.ts +192 -0
- package/packages/analytics-js/__tests__/components/utilities/destinations.test.ts +201 -0
- package/packages/analytics-js/__tests__/components/utilities/event.test.ts +8 -0
- package/packages/analytics-js/__tests__/components/utilities/globals.test.ts +42 -0
- package/packages/analytics-js/__tests__/components/utilities/page.test.ts +235 -0
- package/packages/analytics-js/__tests__/components/utilities/sort.test.ts +17 -0
- package/packages/analytics-js/__tests__/components/utilities/statsCollection.test.ts +84 -0
- package/packages/analytics-js/__tests__/components/utilities/url.test.ts +51 -0
- package/packages/analytics-js/__tests__/services/ErrorHandler/ErrorHandler.test.ts +272 -0
- package/packages/analytics-js/__tests__/services/ErrorHandler/processError.test.ts +33 -0
- package/packages/analytics-js/__tests__/services/HttpClient/HttpClient.test.ts +255 -0
- package/packages/analytics-js/__tests__/services/Logger/Logger.test.ts +204 -0
- package/packages/analytics-js/__tests__/services/PluginEngine/PluginEngine.test.ts +206 -0
- package/packages/analytics-js/__tests__/services/StoreManager/Store.test.ts +152 -0
- package/packages/analytics-js/__tests__/services/StoreManager/StoreManager.test.ts +272 -0
- package/packages/analytics-js/__tests__/services/StoreManager/component-cookie/index.test.ts +65 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/CookieStorage.test.ts +42 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/InMemoryStorage.test.ts +26 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/LocalStorage.test.ts +26 -0
- package/packages/analytics-js/__tests__/services/StoreManager/storages/sessionStorage.test.ts +26 -0
- package/packages/analytics-js/__tests__/services/StoreManager/top-domain/index.test.ts +60 -0
- package/packages/analytics-js/babel.config.json +15 -0
- package/packages/analytics-js/jest.config.mjs +14 -0
- package/packages/analytics-js/package.json +114 -0
- package/packages/analytics-js/project.json +138 -0
- package/packages/analytics-js/public/index-legacy-only.html +308 -0
- package/packages/analytics-js/public/index.html +324 -0
- package/packages/analytics-js/public/list_integration_sdks.html +408 -0
- package/packages/analytics-js/rollup.config.mjs +387 -0
- package/packages/analytics-js/src/app/IRudderStackGlobals.ts +21 -0
- package/packages/analytics-js/src/app/RudderAnalytics.ts +296 -0
- package/packages/analytics-js/src/browser.ts +55 -0
- package/packages/analytics-js/src/components/capabilitiesManager/CapabilitiesManager.ts +199 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/adBlockers.ts +38 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/browser.ts +24 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/clientHint.ts +31 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/dom.ts +54 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/index.ts +6 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/screen.ts +23 -0
- package/packages/analytics-js/src/components/capabilitiesManager/detection/storage.ts +77 -0
- package/packages/analytics-js/src/components/capabilitiesManager/index.ts +1 -0
- package/packages/analytics-js/src/components/capabilitiesManager/polyfill/index.ts +14 -0
- package/packages/analytics-js/src/components/capabilitiesManager/types.ts +14 -0
- package/packages/analytics-js/src/components/configManager/ConfigManager.ts +218 -0
- package/packages/analytics-js/src/components/configManager/constants.ts +21 -0
- package/packages/analytics-js/src/components/configManager/index.ts +1 -0
- package/packages/analytics-js/src/components/configManager/types.ts +90 -0
- package/packages/analytics-js/src/components/configManager/util/cdnPaths.ts +80 -0
- package/packages/analytics-js/src/components/configManager/util/commonUtil.ts +262 -0
- package/packages/analytics-js/src/components/configManager/util/dataPlaneResolver.ts +79 -0
- package/packages/analytics-js/src/components/configManager/util/validate.ts +46 -0
- package/packages/analytics-js/src/components/core/Analytics.ts +824 -0
- package/packages/analytics-js/src/components/core/IAnalytics.ts +218 -0
- package/packages/analytics-js/src/components/core/utilities.ts +12 -0
- package/packages/analytics-js/src/components/eventManager/EventManager.ts +80 -0
- package/packages/analytics-js/src/components/eventManager/RudderEventFactory.ts +171 -0
- package/packages/analytics-js/src/components/eventManager/constants.ts +29 -0
- package/packages/analytics-js/src/components/eventManager/index.ts +1 -0
- package/packages/analytics-js/src/components/eventManager/types.ts +7 -0
- package/packages/analytics-js/src/components/eventManager/utilities.ts +341 -0
- package/packages/analytics-js/src/components/eventRepository/EventRepository.ts +225 -0
- package/packages/analytics-js/src/components/eventRepository/constants.ts +9 -0
- package/packages/analytics-js/src/components/eventRepository/index.ts +1 -0
- package/packages/analytics-js/src/components/eventRepository/types.ts +10 -0
- package/packages/analytics-js/src/components/eventRepository/utils.ts +53 -0
- package/packages/analytics-js/src/components/pluginsManager/PluginsManager.ts +332 -0
- package/packages/analytics-js/src/components/pluginsManager/bundledBuildPluginImports.ts +39 -0
- package/packages/analytics-js/src/components/pluginsManager/defaultPluginsList.ts +24 -0
- package/packages/analytics-js/src/components/pluginsManager/federatedModulesBuildPluginImports.ts +68 -0
- package/packages/analytics-js/src/components/pluginsManager/index.ts +1 -0
- package/packages/analytics-js/src/components/pluginsManager/pluginNames.ts +29 -0
- package/packages/analytics-js/src/components/pluginsManager/pluginsInventory.ts +47 -0
- package/packages/analytics-js/src/components/pluginsManager/types.ts +4 -0
- package/packages/analytics-js/src/components/preloadBuffer/index.ts +187 -0
- package/packages/analytics-js/src/components/preloadBuffer/types.ts +5 -0
- package/packages/analytics-js/src/components/userSessionManager/UserSessionManager.ts +642 -0
- package/packages/analytics-js/src/components/userSessionManager/constants.ts +25 -0
- package/packages/analytics-js/src/components/userSessionManager/index.ts +1 -0
- package/packages/analytics-js/src/components/userSessionManager/types.ts +29 -0
- package/packages/analytics-js/src/components/userSessionManager/utils.ts +109 -0
- package/packages/analytics-js/src/components/utilities/consent.ts +163 -0
- package/packages/analytics-js/src/components/utilities/destinations.ts +31 -0
- package/packages/analytics-js/src/components/utilities/event.ts +3 -0
- package/packages/analytics-js/src/components/utilities/globals.ts +54 -0
- package/packages/analytics-js/src/components/utilities/loadOptions.ts +176 -0
- package/packages/analytics-js/src/components/utilities/number.ts +23 -0
- package/packages/analytics-js/src/components/utilities/page.ts +103 -0
- package/packages/analytics-js/src/components/utilities/sort.ts +15 -0
- package/packages/analytics-js/src/components/utilities/statsCollection.ts +16 -0
- package/packages/analytics-js/src/components/utilities/url.ts +90 -0
- package/packages/analytics-js/src/constants/app.ts +24 -0
- package/packages/analytics-js/src/constants/encryption.ts +6 -0
- package/packages/analytics-js/src/constants/errors.ts +4 -0
- package/packages/analytics-js/src/constants/logMessages.ts +282 -0
- package/packages/analytics-js/src/constants/queryParams.ts +13 -0
- package/packages/analytics-js/src/constants/storage.ts +40 -0
- package/packages/analytics-js/src/constants/timeouts.ts +15 -0
- package/packages/analytics-js/src/constants/urls.ts +21 -0
- package/packages/analytics-js/src/index.ts +40 -0
- package/packages/analytics-js/src/services/ErrorHandler/ErrorHandler.ts +204 -0
- package/packages/analytics-js/src/services/ErrorHandler/constant.ts +3 -0
- package/packages/analytics-js/src/services/ErrorHandler/index.ts +1 -0
- package/packages/analytics-js/src/services/ErrorHandler/processError.ts +61 -0
- package/packages/analytics-js/src/services/HttpClient/HttpClient.ts +112 -0
- package/packages/analytics-js/src/services/HttpClient/index.ts +7 -0
- package/packages/analytics-js/src/services/HttpClient/xhr/xhrRequestHandler.ts +140 -0
- package/packages/analytics-js/src/services/HttpClient/xhr/xhrResponseHandler.ts +25 -0
- package/packages/analytics-js/src/services/Logger/Logger.ts +123 -0
- package/packages/analytics-js/src/services/Logger/index.ts +1 -0
- package/packages/analytics-js/src/services/Logger/types.ts +6 -0
- package/packages/analytics-js/src/services/PluginEngine/PluginEngine.ts +200 -0
- package/packages/analytics-js/src/services/PluginEngine/README.md +152 -0
- package/packages/analytics-js/src/services/PluginEngine/index.ts +1 -0
- package/packages/analytics-js/src/services/StoreManager/Store.ts +218 -0
- package/packages/analytics-js/src/services/StoreManager/StoreManager.ts +231 -0
- package/packages/analytics-js/src/services/StoreManager/component-cookie/README.md +23 -0
- package/packages/analytics-js/src/services/StoreManager/component-cookie/index.ts +138 -0
- package/packages/analytics-js/src/services/StoreManager/index.ts +2 -0
- package/packages/analytics-js/src/services/StoreManager/storages/CookieStorage.ts +80 -0
- package/packages/analytics-js/src/services/StoreManager/storages/InMemoryStorage.ts +66 -0
- package/packages/analytics-js/src/services/StoreManager/storages/LocalStorage.ts +68 -0
- package/packages/analytics-js/src/services/StoreManager/storages/defaultOptions.ts +39 -0
- package/packages/analytics-js/src/services/StoreManager/storages/index.ts +18 -0
- package/packages/analytics-js/src/services/StoreManager/storages/sessionStorage.ts +64 -0
- package/packages/analytics-js/src/services/StoreManager/storages/storageEngine.ts +91 -0
- package/packages/analytics-js/src/services/StoreManager/top-domain/README.md +21 -0
- package/packages/analytics-js/src/services/StoreManager/top-domain/index.ts +83 -0
- package/packages/analytics-js/src/services/StoreManager/types.ts +32 -0
- package/packages/analytics-js/src/services/StoreManager/utils.ts +33 -0
- package/packages/analytics-js/src/state/index.ts +53 -0
- package/packages/analytics-js/src/state/slices/capabilities.ts +19 -0
- package/packages/analytics-js/src/state/slices/consents.ts +16 -0
- package/packages/analytics-js/src/state/slices/context.ts +36 -0
- package/packages/analytics-js/src/state/slices/eventBuffer.ts +9 -0
- package/packages/analytics-js/src/state/slices/lifecycle.ts +19 -0
- package/packages/analytics-js/src/state/slices/loadOptions.ts +44 -0
- package/packages/analytics-js/src/state/slices/metrics.ts +12 -0
- package/packages/analytics-js/src/state/slices/nativeDestinations.ts +15 -0
- package/packages/analytics-js/src/state/slices/plugins.ts +13 -0
- package/packages/analytics-js/src/state/slices/reporting.ts +11 -0
- package/packages/analytics-js/src/state/slices/session.ts +24 -0
- package/packages/analytics-js/src/state/slices/source.ts +6 -0
- package/packages/analytics-js/src/state/slices/storage.ts +13 -0
- package/packages/analytics-js/src/types/index.ts +1 -0
- package/packages/analytics-js/src/types/remote-plugins.d.ts +15 -0
- package/packages/analytics-js/src/types/rudderanalytics.d.ts +16 -0
- package/packages/analytics-js/tsconfig.json +14 -0
- package/packages/analytics-js/tsconfig.spec.json +26 -0
- package/packages/analytics-js-common/.jscpd.json +17 -0
- package/packages/analytics-js-common/.size-limit.js +11 -0
- package/packages/analytics-js-common/CHANGELOG.md +180 -0
- package/packages/analytics-js-common/CHANGELOG_LATEST.md +7 -0
- package/packages/analytics-js-common/LICENSE +21 -0
- package/packages/analytics-js-common/README.md +42 -0
- package/packages/analytics-js-common/__fixtures__/fixtures.ts +161 -0
- package/packages/analytics-js-common/__fixtures__/msw.handlers.ts +82 -0
- package/packages/analytics-js-common/__fixtures__/msw.server.ts +6 -0
- package/packages/analytics-js-common/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-common/__tests__/services/BufferQueue/BufferQueue.test.ts +55 -0
- package/packages/analytics-js-common/__tests__/services/ExternalSrcLoader/ExternalSrcLoader.test.ts +170 -0
- package/packages/analytics-js-common/__tests__/utilities/checks.test.ts +95 -0
- package/packages/analytics-js-common/__tests__/utilities/destinations.test.ts +44 -0
- package/packages/analytics-js-common/__tests__/utilities/detect.test.ts +22 -0
- package/packages/analytics-js-common/__tests__/utilities/eventMethodOverloads.test.ts +260 -0
- package/packages/analytics-js-common/__tests__/utilities/json.test.ts +155 -0
- package/packages/analytics-js-common/__tests__/utilities/object.test.ts +287 -0
- package/packages/analytics-js-common/__tests__/utilities/string.test.ts +104 -0
- package/packages/analytics-js-common/__tests__/utilities/timezone.test.ts +9 -0
- package/packages/analytics-js-common/__tests__/utilities/uuid.test.ts +35 -0
- package/packages/analytics-js-common/__tests__/v1.1/utils/ObjectUtils.test.js +113 -0
- package/packages/analytics-js-common/__tests__/v1.1/utils/errorHandler.test.js +60 -0
- package/packages/analytics-js-common/babel.config.json +14 -0
- package/packages/analytics-js-common/jest.config.mjs +14 -0
- package/packages/analytics-js-common/package.json +92 -0
- package/packages/analytics-js-common/project.json +107 -0
- package/packages/analytics-js-common/src/constants/QueueStatuses.ts +10 -0
- package/packages/analytics-js-common/src/constants/consent.ts +6 -0
- package/packages/analytics-js-common/src/constants/destDisplayNamesToFileNamesMap.ts +243 -0
- package/packages/analytics-js-common/src/constants/destinationNames.ts +312 -0
- package/packages/analytics-js-common/src/constants/htmlAttributes.ts +3 -0
- package/packages/analytics-js-common/src/constants/index.ts +11 -0
- package/packages/analytics-js-common/src/constants/integrations/ActiveCampaign/constants.js +18 -0
- package/packages/analytics-js-common/src/constants/integrations/AdobeAnalytics/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/Adroll/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Amplitude/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Appcues/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Axeptio/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/BingAds/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Braze/constants.ts +22 -0
- package/packages/analytics-js-common/src/constants/integrations/Bugsnag/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Chartbeat/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Clevertap/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/CommandBar/constants.ts +21 -0
- package/packages/analytics-js-common/src/constants/integrations/CommonIntegrationsConstant/constants.ts +194 -0
- package/packages/analytics-js-common/src/constants/integrations/Comscore/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/ConvertFlow/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/Criteo/constants.ts +22 -0
- package/packages/analytics-js-common/src/constants/integrations/CustomerIO/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/DCMFloodlight/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/Drip/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Engage/constants.ts +27 -0
- package/packages/analytics-js-common/src/constants/integrations/FacebookPixel/constants.ts +89 -0
- package/packages/analytics-js-common/src/constants/integrations/Fullstory/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/GA/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/GA360/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/GA4/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/GoogleAds/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/GoogleOptimize/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/GoogleTagManager/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Heap/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Hotjar/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/HubSpot/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/INTERCOM/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Iterable/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/June/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Keen/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrations/Kissmetrics/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Klaviyo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/LaunchDarkly/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/Lemnisk/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/LinkedInInsightTag/constants.ts +20 -0
- package/packages/analytics-js-common/src/constants/integrations/LiveChat/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Lotame/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Lytics/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Matomo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/MicrosoftClarity/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/Mixpanel/constants.ts +15 -0
- package/packages/analytics-js-common/src/constants/integrations/MoEngage/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Mouseflow/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/Ninetailed/constants.ts +13 -0
- package/packages/analytics-js-common/src/constants/integrations/Olark/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Optimizely/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Pendo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/PinterestTag/constants.ts +23 -0
- package/packages/analytics-js-common/src/constants/integrations/Podsights/constants.ts +24 -0
- package/packages/analytics-js-common/src/constants/integrations/PostAffiliatePro/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Posthog/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/ProfitWell/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/Qualaroo/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Qualtrics/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/QuantumMetric/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/QuoraPixel/constants.ts +19 -0
- package/packages/analytics-js-common/src/constants/integrations/RedditPixel/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Refiner/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Rockerbox/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/RollBar/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Satismeter/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Sendinblue/constants.ts +37 -0
- package/packages/analytics-js-common/src/constants/integrations/Sentry/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Shynet/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/SnapEngage/constants.ts +16 -0
- package/packages/analytics-js-common/src/constants/integrations/SnapPixel/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/SpotifyPixel/constants.ts +20 -0
- package/packages/analytics-js-common/src/constants/integrations/Sprig/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/TVSquared/constants.ts +18 -0
- package/packages/analytics-js-common/src/constants/integrations/TiktokAds/constants.ts +97 -0
- package/packages/analytics-js-common/src/constants/integrations/VWO/constants.ts +17 -0
- package/packages/analytics-js-common/src/constants/integrations/Vero/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/Woopra/constants.ts +12 -0
- package/packages/analytics-js-common/src/constants/integrations/YandexMetrica/constants.ts +14 -0
- package/packages/analytics-js-common/src/constants/integrationsConfig.ts +5 -0
- package/packages/analytics-js-common/src/constants/logMessages.ts +24 -0
- package/packages/analytics-js-common/src/constants/loggerContexts.ts +33 -0
- package/packages/analytics-js-common/src/constants/storages.ts +9 -0
- package/packages/analytics-js-common/src/constants/timeouts.ts +3 -0
- package/packages/analytics-js-common/src/constants/urls.ts +4 -0
- package/packages/analytics-js-common/src/index.ts +4 -0
- package/packages/analytics-js-common/src/services/BufferQueue/BufferQueue.ts +37 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/ExternalSrcLoader.ts +63 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/index.ts +1 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/jsFileLoader.ts +124 -0
- package/packages/analytics-js-common/src/services/ExternalSrcLoader/types.ts +26 -0
- package/packages/analytics-js-common/src/types/ApiObject.ts +14 -0
- package/packages/analytics-js-common/src/types/ApplicationLifecycle.ts +12 -0
- package/packages/analytics-js-common/src/types/ApplicationState.ts +172 -0
- package/packages/analytics-js-common/src/types/Consent.ts +47 -0
- package/packages/analytics-js-common/src/types/DataResidency.ts +9 -0
- package/packages/analytics-js-common/src/types/Destination.ts +85 -0
- package/packages/analytics-js-common/src/types/ErrorHandler.ts +39 -0
- package/packages/analytics-js-common/src/types/Event.ts +54 -0
- package/packages/analytics-js-common/src/types/EventApi.ts +45 -0
- package/packages/analytics-js-common/src/types/EventContext.ts +26 -0
- package/packages/analytics-js-common/src/types/HttpClient.ts +63 -0
- package/packages/analytics-js-common/src/types/IRudderAnalytics.ts +204 -0
- package/packages/analytics-js-common/src/types/Integration.ts +18 -0
- package/packages/analytics-js-common/src/types/LoadOptions.ts +159 -0
- package/packages/analytics-js-common/src/types/Logger.ts +19 -0
- package/packages/analytics-js-common/src/types/Nullable.ts +1 -0
- package/packages/analytics-js-common/src/types/PluginEngine.ts +41 -0
- package/packages/analytics-js-common/src/types/PluginsManager.ts +29 -0
- package/packages/analytics-js-common/src/types/Session.ts +8 -0
- package/packages/analytics-js-common/src/types/Source.ts +21 -0
- package/packages/analytics-js-common/src/types/Storage.ts +49 -0
- package/packages/analytics-js-common/src/types/Store.ts +82 -0
- package/packages/analytics-js-common/src/types/UserSessionStorage.ts +10 -0
- package/packages/analytics-js-common/src/types/traits.ts +91 -0
- package/packages/analytics-js-common/src/utilities/checks.ts +77 -0
- package/packages/analytics-js-common/src/utilities/crypto.ts +6 -0
- package/packages/analytics-js-common/src/utilities/destinations.ts +31 -0
- package/packages/analytics-js-common/src/utilities/detect.ts +8 -0
- package/packages/analytics-js-common/src/utilities/errors.ts +20 -0
- package/packages/analytics-js-common/src/utilities/eventMethodOverloads.ts +407 -0
- package/packages/analytics-js-common/src/utilities/http.ts +13 -0
- package/packages/analytics-js-common/src/utilities/index.ts +14 -0
- package/packages/analytics-js-common/src/utilities/json.ts +69 -0
- package/packages/analytics-js-common/src/utilities/object.ts +119 -0
- package/packages/analytics-js-common/src/utilities/string.ts +64 -0
- package/packages/analytics-js-common/src/utilities/timestamp.ts +10 -0
- package/packages/analytics-js-common/src/utilities/timezone.ts +11 -0
- package/packages/analytics-js-common/src/utilities/url.ts +3 -0
- package/packages/analytics-js-common/src/utilities/uuId.ts +13 -0
- package/packages/analytics-js-common/src/v1.1/utils/ObjectUtils.js +54 -0
- package/packages/analytics-js-common/src/v1.1/utils/ScriptLoader.js +51 -0
- package/packages/analytics-js-common/src/v1.1/utils/client_server_name.js +82 -0
- package/packages/analytics-js-common/src/v1.1/utils/config_to_integration_names.js +83 -0
- package/packages/analytics-js-common/src/v1.1/utils/constants.js +15 -0
- package/packages/analytics-js-common/src/v1.1/utils/errorHandler.js +88 -0
- package/packages/analytics-js-common/src/v1.1/utils/index.ts +10 -0
- package/packages/analytics-js-common/src/v1.1/utils/integration_cname.js +164 -0
- package/packages/analytics-js-common/src/v1.1/utils/logUtil.js +51 -0
- package/packages/analytics-js-common/src/v1.1/utils/notifyError.js +16 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/cookie.js +98 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/index.js +5 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/storage.js +384 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/store.js +79 -0
- package/packages/analytics-js-common/src/v1.1/utils/storage/v3DecryptionUtils.js +19 -0
- package/packages/analytics-js-common/tsconfig.json +14 -0
- package/packages/analytics-js-common/tsconfig.spec.json +23 -0
- package/packages/analytics-js-common/types/rudderanalytics.d.ts +16 -0
- package/packages/analytics-js-integrations/.jscpd.json +17 -0
- package/packages/analytics-js-integrations/.size-limit.js +11 -0
- package/packages/analytics-js-integrations/CHANGELOG.md +241 -0
- package/packages/analytics-js-integrations/CHANGELOG_LATEST.md +12 -0
- package/packages/analytics-js-integrations/LICENSE +21 -0
- package/packages/analytics-js-integrations/README.md +35 -0
- package/packages/analytics-js-integrations/__fixtures__/.gitkeep +0 -0
- package/packages/analytics-js-integrations/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-integrations/__tests__/common/common.test.js +49 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Amplitude/browser.test.js +926 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Amplitude/util.test.js +190 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Appcues/appcues.test.js +163 -0
- package/packages/analytics-js-integrations/__tests__/integrations/BingAds/__fixtures__/data.js +17 -0
- package/packages/analytics-js-integrations/__tests__/integrations/BingAds/browser.test.js +166 -0
- package/packages/analytics-js-integrations/__tests__/integrations/BingAds/utils.test.js +138 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Braze/browser.test.js +1077 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Clevertap/browser.test.js +43 -0
- package/packages/analytics-js-integrations/__tests__/integrations/CommandBar/browser.test.js +115 -0
- package/packages/analytics-js-integrations/__tests__/integrations/FacebookPixel/browser.test.js +410 -0
- package/packages/analytics-js-integrations/__tests__/integrations/FacebookPixel/utils.test.js +775 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Fullstory/browser.test.js +173 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA/browser.test.js +179 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA4/__mocks__/data.js +1563 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA4/browser.test.js +212 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GA4/utils.test.js +380 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GoogleAds/__fixtures__/data.js +256 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GoogleAds/browser.test.js +372 -0
- package/packages/analytics-js-integrations/__tests__/integrations/GoogleAds/utils.test.js +121 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Hotjar/browser.test.js +108 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Intercom/browser.test.js +135 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Intercom/util.test.js +69 -0
- package/packages/analytics-js-integrations/__tests__/integrations/LaunchDarkly/__fixtures__/data.js +61 -0
- package/packages/analytics-js-integrations/__tests__/integrations/LaunchDarkly/browser.test.js +151 -0
- package/packages/analytics-js-integrations/__tests__/integrations/LaunchDarkly/utils.test.js +36 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Lemnisk/browser.test.js +172 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Matomo/browser.test.js +208 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Mixpanel/browser.test.js +117 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Mixpanel/util.test.js +504 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Ninetailed/browser.test.js +148 -0
- package/packages/analytics-js-integrations/__tests__/integrations/PinterestTag/__fixtures__/data.js +24 -0
- package/packages/analytics-js-integrations/__tests__/integrations/PinterestTag/utils.test.js +19 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Podsights/utils.test.js +394 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Posthog/browser.test.js +420 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Posthog/utils.test.js +111 -0
- package/packages/analytics-js-integrations/__tests__/integrations/SpotifyPixel/browser.test.js +630 -0
- package/packages/analytics-js-integrations/__tests__/integrations/Sprig/browser.test.js +85 -0
- package/packages/analytics-js-integrations/__tests__/integrations/TikTokAds/browser.test.js +421 -0
- package/packages/analytics-js-integrations/__tests__/integrations/VWO/browser.test.js +143 -0
- package/packages/analytics-js-integrations/__tests__/integrations/VWO/utils.test.js +36 -0
- package/packages/analytics-js-integrations/__tests__/utils/camelcase.test.js +29 -0
- package/packages/analytics-js-integrations/__tests__/utils/commonUtils.test.js +347 -0
- package/packages/analytics-js-integrations/__tests__/utils/utils.test.js +337 -0
- package/packages/analytics-js-integrations/babel.config.json +14 -0
- package/packages/analytics-js-integrations/jest.config.mjs +21 -0
- package/packages/analytics-js-integrations/package.json +143 -0
- package/packages/analytics-js-integrations/project.json +106 -0
- package/packages/analytics-js-integrations/public/list_integration_sdks.html +408 -0
- package/packages/analytics-js-integrations/rollup.config.mjs +151 -0
- package/packages/analytics-js-integrations/scripts/integrationBuildScript.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/ActiveCampaign/browser.js +53 -0
- package/packages/analytics-js-integrations/src/integrations/ActiveCampaign/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/ActiveCampaign/nativeSdkLoader.js +24 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/browser.js +279 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/eCommHandle.js +56 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/heartbeatHandle.js +268 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/AdobeAnalytics/util.js +681 -0
- package/packages/analytics-js-integrations/src/integrations/Adroll/browser.js +123 -0
- package/packages/analytics-js-integrations/src/integrations/Adroll/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Adroll/util.js +48 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/browser.js +374 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/nativeSdkLoader.js +114 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/test/test_amplitude.html +157 -0
- package/packages/analytics-js-integrations/src/integrations/Amplitude/utils.js +67 -0
- package/packages/analytics-js-integrations/src/integrations/Appcues/browser.js +89 -0
- package/packages/analytics-js-integrations/src/integrations/Appcues/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/browser.js +61 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/nativeSdkLoader.js +14 -0
- package/packages/analytics-js-integrations/src/integrations/Axeptio/utils.js +16 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/nativeSdkLoader.js +30 -0
- package/packages/analytics-js-integrations/src/integrations/BingAds/utils.js +100 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/browser.js +297 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/nativeSdkLoader.js +35 -0
- package/packages/analytics-js-integrations/src/integrations/Braze/utils.js +51 -0
- package/packages/analytics-js-integrations/src/integrations/Bugsnag/browser.js +62 -0
- package/packages/analytics-js-integrations/src/integrations/Bugsnag/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Chartbeat/browser.js +143 -0
- package/packages/analytics-js-integrations/src/integrations/Chartbeat/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Chartbeat/nativeSdkLoader.js +7 -0
- package/packages/analytics-js-integrations/src/integrations/Clevertap/browser.js +202 -0
- package/packages/analytics-js-integrations/src/integrations/Clevertap/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Clevertap/utils.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/CommandBar/browser.js +78 -0
- package/packages/analytics-js-integrations/src/integrations/CommandBar/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/CommandBar/nativeSdkLoader.js +85 -0
- package/packages/analytics-js-integrations/src/integrations/Comscore/browser.js +126 -0
- package/packages/analytics-js-integrations/src/integrations/Comscore/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Comscore/nativeSdkLoader.js +10 -0
- package/packages/analytics-js-integrations/src/integrations/ConvertFlow/browser.js +60 -0
- package/packages/analytics-js-integrations/src/integrations/ConvertFlow/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/ConvertFlow/utils.js +107 -0
- package/packages/analytics-js-integrations/src/integrations/Criteo/browser.js +144 -0
- package/packages/analytics-js-integrations/src/integrations/Criteo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Criteo/utils.js +346 -0
- package/packages/analytics-js-integrations/src/integrations/CustomerIO/browser.js +85 -0
- package/packages/analytics-js-integrations/src/integrations/CustomerIO/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/CustomerIO/nativeSdkLoader.js +33 -0
- package/packages/analytics-js-integrations/src/integrations/DCMFloodlight/browser.js +228 -0
- package/packages/analytics-js-integrations/src/integrations/DCMFloodlight/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/DCMFloodlight/utils.js +353 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/browser.js +165 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/nativeSdkLoader.js +10 -0
- package/packages/analytics-js-integrations/src/integrations/Drip/utils.js +29 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/browser.js +119 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/nativeSdkLoader.js +25 -0
- package/packages/analytics-js-integrations/src/integrations/Engage/utils.js +69 -0
- package/packages/analytics-js-integrations/src/integrations/FacebookPixel/browser.js +326 -0
- package/packages/analytics-js-integrations/src/integrations/FacebookPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/FacebookPixel/utils.js +332 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/browser.js +175 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/nativeSdkLoader.js +69 -0
- package/packages/analytics-js-integrations/src/integrations/Fullstory/utils.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/GA/browser.js +817 -0
- package/packages/analytics-js-integrations/src/integrations/GA/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GA360/browser.js +58 -0
- package/packages/analytics-js-integrations/src/integrations/GA360/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/browser.js +264 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/config.js +296 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GA4/utils.js +374 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/browser.js +219 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/browser.test.js +16 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/nativeSdkLoader.js +28 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleAds/utils.js +135 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleOptimize/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleOptimize/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleTagManager/browser.js +96 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleTagManager/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/GoogleTagManager/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/browser.js +64 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/nativeSdkLoader.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/Heap/util.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Hotjar/browser.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/Hotjar/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Hotjar/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/HubSpot/browser.js +91 -0
- package/packages/analytics-js-integrations/src/integrations/HubSpot/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/browser.js +112 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/nativeSdkLoader.js +46 -0
- package/packages/analytics-js-integrations/src/integrations/INTERCOM/utils.js +68 -0
- package/packages/analytics-js-integrations/src/integrations/Iterable/browser.js +179 -0
- package/packages/analytics-js-integrations/src/integrations/Iterable/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Iterable/utils.js +127 -0
- package/packages/analytics-js-integrations/src/integrations/June/browser.js +96 -0
- package/packages/analytics-js-integrations/src/integrations/June/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Keen/browser.js +150 -0
- package/packages/analytics-js-integrations/src/integrations/Keen/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Kissmetrics/browser.js +245 -0
- package/packages/analytics-js-integrations/src/integrations/Kissmetrics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Kissmetrics/nativeSdkLoader.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Klaviyo/browser.js +197 -0
- package/packages/analytics-js-integrations/src/integrations/Klaviyo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Klaviyo/util.js +91 -0
- package/packages/analytics-js-integrations/src/integrations/LaunchDarkly/browser.js +75 -0
- package/packages/analytics-js-integrations/src/integrations/LaunchDarkly/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/LaunchDarkly/utils.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/Lemnisk/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/Lemnisk/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Lemnisk/nativeSdkLoader.js +34 -0
- package/packages/analytics-js-integrations/src/integrations/LinkedInInsightTag/browser.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/LinkedInInsightTag/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/browser.js +81 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/nativeSdkLoader.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/LiveChat/util.js +71 -0
- package/packages/analytics-js-integrations/src/integrations/Lotame/LotameStorage.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/Lotame/browser.js +152 -0
- package/packages/analytics-js-integrations/src/integrations/Lotame/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/browser.js +103 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/nativeSdkLoader.js +77 -0
- package/packages/analytics-js-integrations/src/integrations/Lytics/test/script-test-lytics.html +250 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/browser.js +184 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/nativeSdkLoader.js +20 -0
- package/packages/analytics-js-integrations/src/integrations/Matomo/util.js +433 -0
- package/packages/analytics-js-integrations/src/integrations/MicrosoftClarity/browser.js +69 -0
- package/packages/analytics-js-integrations/src/integrations/MicrosoftClarity/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/MicrosoftClarity/nativeSdkLoader.js +22 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/browser.js +353 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/nativeSdkLoader.js +71 -0
- package/packages/analytics-js-integrations/src/integrations/Mixpanel/util.js +288 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/browser.js +131 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/nativeSdkLoader.js +65 -0
- package/packages/analytics-js-integrations/src/integrations/MoEngage/test/script-test-moengage.html +216 -0
- package/packages/analytics-js-integrations/src/integrations/Mouseflow/browser.js +97 -0
- package/packages/analytics-js-integrations/src/integrations/Mouseflow/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Mouseflow/utils.js +41 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/browser.js +65 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/README.md +70 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/package-lock.json +17843 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/package.json +43 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/favicon.ico +0 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/index.html +75 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/logo192.png +0 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/logo512.png +0 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/manifest.json +25 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/public/robots.txt +3 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/App.css +38 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/App.js +108 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/index.css +34 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/index.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/logo.svg +1 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/reportWebVitals.js +13 -0
- package/packages/analytics-js-integrations/src/integrations/Ninetailed/sample-app/src/setupTests.js +5 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/browser.js +92 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/nativeSdkLoader.js +31 -0
- package/packages/analytics-js-integrations/src/integrations/Olark/utils.js +51 -0
- package/packages/analytics-js-integrations/src/integrations/Optimizely/browser.js +244 -0
- package/packages/analytics-js-integrations/src/integrations/Optimizely/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Optimizely/utils.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Pendo/browser.js +123 -0
- package/packages/analytics-js-integrations/src/integrations/Pendo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Pendo/nativeSdkLoader.js +32 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/browser.js +240 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/nativeSdkLoader.js +19 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/propertyMappingConfig.js +57 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/test/input.js +180 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/test/output.js +129 -0
- package/packages/analytics-js-integrations/src/integrations/PinterestTag/utils.js +50 -0
- package/packages/analytics-js-integrations/src/integrations/Podsights/browser.js +179 -0
- package/packages/analytics-js-integrations/src/integrations/Podsights/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Podsights/utils.js +64 -0
- package/packages/analytics-js-integrations/src/integrations/PostAffiliatePro/browser.js +132 -0
- package/packages/analytics-js-integrations/src/integrations/PostAffiliatePro/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/PostAffiliatePro/utils.js +40 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/browser.js +147 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/nativeSdkLoader.js +48 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/test/test_posthog.html +77 -0
- package/packages/analytics-js-integrations/src/integrations/Posthog/utils.js +52 -0
- package/packages/analytics-js-integrations/src/integrations/ProfitWell/browser.js +71 -0
- package/packages/analytics-js-integrations/src/integrations/ProfitWell/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/ProfitWell/nativeSdkLoader.js +25 -0
- package/packages/analytics-js-integrations/src/integrations/Qualaroo/browser.js +116 -0
- package/packages/analytics-js-integrations/src/integrations/Qualaroo/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Qualaroo/utils.js +83 -0
- package/packages/analytics-js-integrations/src/integrations/Qualtrics/browser.js +92 -0
- package/packages/analytics-js-integrations/src/integrations/Qualtrics/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Qualtrics/nativeSdkLoader.js +79 -0
- package/packages/analytics-js-integrations/src/integrations/QuantumMetric/browser.js +54 -0
- package/packages/analytics-js-integrations/src/integrations/QuantumMetric/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/QuoraPixel/browser.js +77 -0
- package/packages/analytics-js-integrations/src/integrations/QuoraPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/QuoraPixel/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/RedditPixel/browser.js +103 -0
- package/packages/analytics-js-integrations/src/integrations/RedditPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/RedditPixel/nativeSdkLoader.js +21 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/browser.js +117 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/nativeSdkLoader.js +20 -0
- package/packages/analytics-js-integrations/src/integrations/Refiner/utils.js +44 -0
- package/packages/analytics-js-integrations/src/integrations/Rockerbox/browser.js +90 -0
- package/packages/analytics-js-integrations/src/integrations/Rockerbox/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Rockerbox/nativeSdkLoader.js +32 -0
- package/packages/analytics-js-integrations/src/integrations/RollBar/browser.js +93 -0
- package/packages/analytics-js-integrations/src/integrations/RollBar/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/RollBar/nativeSdkLoader.js +383 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/browser.js +92 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/nativeSdkLoader.js +23 -0
- package/packages/analytics-js-integrations/src/integrations/Satismeter/util.js +54 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/browser.js +111 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/nativeSdkLoader.js +36 -0
- package/packages/analytics-js-integrations/src/integrations/Sendinblue/utils.js +129 -0
- package/packages/analytics-js-integrations/src/integrations/Sentry/browser.js +120 -0
- package/packages/analytics-js-integrations/src/integrations/Sentry/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sentry/utils.js +84 -0
- package/packages/analytics-js-integrations/src/integrations/Shynet/browser.js +99 -0
- package/packages/analytics-js-integrations/src/integrations/Shynet/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/browser.js +74 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/nativeSdkLoader.js +24 -0
- package/packages/analytics-js-integrations/src/integrations/SnapEngage/util.js +63 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/browser.js +226 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/nativeSdkLoader.js +20 -0
- package/packages/analytics-js-integrations/src/integrations/SnapPixel/util.js +214 -0
- package/packages/analytics-js-integrations/src/integrations/SpotifyPixel/browser.js +180 -0
- package/packages/analytics-js-integrations/src/integrations/SpotifyPixel/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sprig/browser.js +89 -0
- package/packages/analytics-js-integrations/src/integrations/Sprig/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Sprig/nativeSdkLoader.js +19 -0
- package/packages/analytics-js-integrations/src/integrations/TVSquared/browser.js +99 -0
- package/packages/analytics-js-integrations/src/integrations/TVSquared/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/TVSquared/utils.js +41 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/browser.js +111 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/nativeSdkLoader.js +52 -0
- package/packages/analytics-js-integrations/src/integrations/TiktokAds/util.js +70 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/browser.js +155 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/nativeSdkLoader.js +64 -0
- package/packages/analytics-js-integrations/src/integrations/VWO/utils.js +42 -0
- package/packages/analytics-js-integrations/src/integrations/Vero/browser.js +166 -0
- package/packages/analytics-js-integrations/src/integrations/Vero/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Vero/utils.js +17 -0
- package/packages/analytics-js-integrations/src/integrations/Woopra/browser.js +82 -0
- package/packages/analytics-js-integrations/src/integrations/Woopra/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/Woopra/nativeSdkLoader.js +43 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/browser.js +139 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/index.js +1 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/nativeSdkLoader.js +35 -0
- package/packages/analytics-js-integrations/src/integrations/YandexMetrica/utils.js +140 -0
- package/packages/analytics-js-integrations/src/integrations/index.js +163 -0
- package/packages/analytics-js-integrations/src/utils/camelcase.js +48 -0
- package/packages/analytics-js-integrations/src/utils/commonUtils.js +214 -0
- package/packages/analytics-js-integrations/src/utils/constants.js +4 -0
- package/packages/analytics-js-integrations/src/utils/logger.js +106 -0
- package/packages/analytics-js-integrations/src/utils/utils.js +585 -0
- package/packages/analytics-js-integrations/tsconfig.json +8 -0
- package/packages/analytics-js-integrations/tsconfig.spec.json +26 -0
- package/packages/analytics-js-plugins/.jscpd.json +17 -0
- package/packages/analytics-js-plugins/.size-limit.js +16 -0
- package/packages/analytics-js-plugins/CHANGELOG.md +212 -0
- package/packages/analytics-js-plugins/CHANGELOG_LATEST.md +7 -0
- package/packages/analytics-js-plugins/LICENSE +21 -0
- package/packages/analytics-js-plugins/README.md +57 -0
- package/packages/analytics-js-plugins/__fixtures__/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__fixtures__/fixtures.ts +174 -0
- package/packages/analytics-js-plugins/__fixtures__/msw.handlers.js +45 -0
- package/packages/analytics-js-plugins/__fixtures__/msw.server.js +6 -0
- package/packages/analytics-js-plugins/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/beaconQueue/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/bugsnag/index.test.ts +116 -0
- package/packages/analytics-js-plugins/__tests__/bugsnag/utils.test.ts +555 -0
- package/packages/analytics-js-plugins/__tests__/customConsentManager/index.test.ts +264 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeDestinations/utils.test.ts +260 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeTransformation/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeTransformation/index.test.ts +287 -0
- package/packages/analytics-js-plugins/__tests__/deviceModeTransformation/utilities.test.ts +22 -0
- package/packages/analytics-js-plugins/__tests__/errorReporting/index.test.ts +102 -0
- package/packages/analytics-js-plugins/__tests__/externalAnonymousId/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/googleLinker/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/ketchConsentManager/index.test.ts +498 -0
- package/packages/analytics-js-plugins/__tests__/ketchConsentManager/utils.test.ts +189 -0
- package/packages/analytics-js-plugins/__tests__/nativeDestinationQueue/utilities.test.ts +98 -0
- package/packages/analytics-js-plugins/__tests__/oneTrustConsentManager/index.test.ts +395 -0
- package/packages/analytics-js-plugins/__tests__/storageEncryption/index.test.ts +37 -0
- package/packages/analytics-js-plugins/__tests__/storageEncryptionLegacy/index.test.ts +41 -0
- package/packages/analytics-js-plugins/__tests__/storageMigrator/.gitkeep +0 -0
- package/packages/analytics-js-plugins/__tests__/storageMigrator/index.test.ts +144 -0
- package/packages/analytics-js-plugins/__tests__/utilities/destination.test.ts +133 -0
- package/packages/analytics-js-plugins/__tests__/utilities/queue.test.ts +327 -0
- package/packages/analytics-js-plugins/__tests__/utilities/retryQueue/RetryQueue.test.ts +1077 -0
- package/packages/analytics-js-plugins/__tests__/utilities/retryQueue/Schedule.test.ts +78 -0
- package/packages/analytics-js-plugins/__tests__/xhrQueue/index.test.ts +320 -0
- package/packages/analytics-js-plugins/__tests__/xhrQueue/utilities.test.ts +388 -0
- package/packages/analytics-js-plugins/babel.config.json +14 -0
- package/packages/analytics-js-plugins/jest.config.mjs +14 -0
- package/packages/analytics-js-plugins/package.json +106 -0
- package/packages/analytics-js-plugins/project.json +131 -0
- package/packages/analytics-js-plugins/public/.gitkeep +0 -0
- package/packages/analytics-js-plugins/rollup.config.mjs +245 -0
- package/packages/analytics-js-plugins/src/beaconQueue/constants.ts +27 -0
- package/packages/analytics-js-plugins/src/beaconQueue/index.ts +146 -0
- package/packages/analytics-js-plugins/src/beaconQueue/logMessages.ts +24 -0
- package/packages/analytics-js-plugins/src/beaconQueue/types.ts +12 -0
- package/packages/analytics-js-plugins/src/beaconQueue/utilities.ts +68 -0
- package/packages/analytics-js-plugins/src/bugsnag/constants.ts +52 -0
- package/packages/analytics-js-plugins/src/bugsnag/index.ts +65 -0
- package/packages/analytics-js-plugins/src/bugsnag/logMessages.ts +19 -0
- package/packages/analytics-js-plugins/src/bugsnag/utils.ts +214 -0
- package/packages/analytics-js-plugins/src/customConsentManager/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/customConsentManager/index.ts +86 -0
- package/packages/analytics-js-plugins/src/customConsentManager/logMessages.ts +3 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/constants.ts +6 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/index.ts +138 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/logMessages.ts +24 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/types.ts +28 -0
- package/packages/analytics-js-plugins/src/deviceModeDestinations/utils.ts +249 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/constants.ts +12 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/index.ts +111 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/logMessages.ts +28 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/types.ts +38 -0
- package/packages/analytics-js-plugins/src/deviceModeTransformation/utilities.ts +155 -0
- package/packages/analytics-js-plugins/src/errorReporting/index.ts +62 -0
- package/packages/analytics-js-plugins/src/errorReporting/logMessages.ts +3 -0
- package/packages/analytics-js-plugins/src/externalAnonymousId/constants.ts +5 -0
- package/packages/analytics-js-plugins/src/externalAnonymousId/index.ts +47 -0
- package/packages/analytics-js-plugins/src/externalAnonymousId/util.ts +25 -0
- package/packages/analytics-js-plugins/src/googleLinker/base64Decoder.ts +33 -0
- package/packages/analytics-js-plugins/src/googleLinker/constants.ts +1 -0
- package/packages/analytics-js-plugins/src/googleLinker/crc32.ts +44 -0
- package/packages/analytics-js-plugins/src/googleLinker/index.ts +30 -0
- package/packages/analytics-js-plugins/src/googleLinker/userLib.ts +16 -0
- package/packages/analytics-js-plugins/src/googleLinker/utils.ts +156 -0
- package/packages/analytics-js-plugins/src/index.ts +15 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/constants.ts +4 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/index.ts +120 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/logMessages.ts +15 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/types.ts +11 -0
- package/packages/analytics-js-plugins/src/ketchConsentManager/utils.ts +95 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/constants.ts +9 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/index.ts +159 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/logMessages.ts +14 -0
- package/packages/analytics-js-plugins/src/nativeDestinationQueue/utilities.ts +81 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/index.ts +131 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/logMessages.ts +8 -0
- package/packages/analytics-js-plugins/src/oneTrustConsentManager/types.ts +4 -0
- package/packages/analytics-js-plugins/src/shared-chunks/common.ts +13 -0
- package/packages/analytics-js-plugins/src/shared-chunks/deviceModeDestinations.ts +3 -0
- package/packages/analytics-js-plugins/src/storageEncryption/constants.ts +1 -0
- package/packages/analytics-js-plugins/src/storageEncryption/encryptionUtils.ts +14 -0
- package/packages/analytics-js-plugins/src/storageEncryption/index.ts +26 -0
- package/packages/analytics-js-plugins/src/storageEncryptionLegacy/constants.ts +2 -0
- package/packages/analytics-js-plugins/src/storageEncryptionLegacy/index.ts +26 -0
- package/packages/analytics-js-plugins/src/storageEncryptionLegacy/legacyEncryptionUtils.ts +18 -0
- package/packages/analytics-js-plugins/src/storageMigrator/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/storageMigrator/index.ts +59 -0
- package/packages/analytics-js-plugins/src/storageMigrator/logMessages.ts +4 -0
- package/packages/analytics-js-plugins/src/types/plugins.ts +69 -0
- package/packages/analytics-js-plugins/src/utilities/constants.ts +3 -0
- package/packages/analytics-js-plugins/src/utilities/destination.ts +40 -0
- package/packages/analytics-js-plugins/src/utilities/eventsDelivery.ts +85 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/README.md +135 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/RetryQueue.ts +736 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/Schedule.ts +101 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/constants.ts +32 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/logMessages.ts +9 -0
- package/packages/analytics-js-plugins/src/utilities/retryQueue/types.ts +21 -0
- package/packages/analytics-js-plugins/src/xhrQueue/constants.ts +23 -0
- package/packages/analytics-js-plugins/src/xhrQueue/index.ts +158 -0
- package/packages/analytics-js-plugins/src/xhrQueue/logMessages.ts +6 -0
- package/packages/analytics-js-plugins/src/xhrQueue/types.ts +16 -0
- package/packages/analytics-js-plugins/src/xhrQueue/utilities.ts +103 -0
- package/packages/analytics-js-plugins/tsconfig.json +14 -0
- package/packages/analytics-js-plugins/tsconfig.spec.json +24 -0
- package/packages/analytics-js-service-worker/.env.example +8 -0
- package/packages/analytics-js-service-worker/.jscpd.json +17 -0
- package/packages/analytics-js-service-worker/.size-limit.js +11 -0
- package/packages/analytics-js-service-worker/CHANGELOG.md +91 -0
- package/packages/analytics-js-service-worker/CHANGELOG_LATEST.md +7 -0
- package/packages/analytics-js-service-worker/LICENSE +21 -0
- package/packages/analytics-js-service-worker/README.md +74 -0
- package/packages/analytics-js-service-worker/__fixtures__/fixtures.ts +79 -0
- package/packages/analytics-js-service-worker/__fixtures__/msw.server.ts +13 -0
- package/packages/analytics-js-service-worker/__mocks__/.gitkeep +0 -0
- package/packages/analytics-js-service-worker/__tests__/Analytics.test.ts +120 -0
- package/packages/analytics-js-service-worker/__tests__/loosely-validate-event/index.test.ts +140 -0
- package/packages/analytics-js-service-worker/babel.config.json +15 -0
- package/packages/analytics-js-service-worker/jest.config.mjs +14 -0
- package/packages/analytics-js-service-worker/package.json +103 -0
- package/packages/analytics-js-service-worker/project.json +104 -0
- package/packages/analytics-js-service-worker/public/.gitkeep +0 -0
- package/packages/analytics-js-service-worker/rollup.config.mjs +140 -0
- package/packages/analytics-js-service-worker/src/Analytics.ts +564 -0
- package/packages/analytics-js-service-worker/src/IAnalytics.ts +141 -0
- package/packages/analytics-js-service-worker/src/index.ts +9 -0
- package/packages/analytics-js-service-worker/src/loosely-validate-event/index.ts +136 -0
- package/packages/analytics-js-service-worker/src/types.ts +67 -0
- package/packages/analytics-js-service-worker/tsconfig.json +8 -0
- package/packages/analytics-js-service-worker/tsconfig.spec.json +22 -0
- package/packages/analytics-v1.1/.env.example +8 -0
- package/packages/analytics-v1.1/.jscpd.json +17 -0
- package/packages/analytics-v1.1/.size-limit.js +16 -0
- package/packages/analytics-v1.1/.versionrc +12 -0
- package/packages/analytics-v1.1/CHANGELOG.md +3859 -0
- package/packages/analytics-v1.1/CHANGELOG_LATEST.md +5 -0
- package/packages/analytics-v1.1/LICENSE +21 -0
- package/packages/analytics-v1.1/README.md +321 -0
- package/packages/analytics-v1.1/__fixtures__/fixtures.js +130 -0
- package/packages/analytics-v1.1/__fixtures__/msw.handlers.js +51 -0
- package/packages/analytics-v1.1/__fixtures__/msw.server.js +6 -0
- package/packages/analytics-v1.1/__mocks__/.gitkeep +0 -0
- package/packages/analytics-v1.1/__tests__/data-residency.test.js +236 -0
- package/packages/analytics-v1.1/__tests__/features/core/metrics/errorReporting/ErrorReportingService.test.js +80 -0
- package/packages/analytics-v1.1/__tests__/ketchConsent.test.js +49 -0
- package/packages/analytics-v1.1/__tests__/oneTrustCookieConsent.test.js +89 -0
- package/packages/analytics-v1.1/__tests__/script.test.js +167 -0
- package/packages/analytics-v1.1/__tests__/transformationHandler.test.js +179 -0
- package/packages/analytics-v1.1/__tests__/utils/IntegrationsData.test.js +105 -0
- package/packages/analytics-v1.1/__tests__/utils/cdnPaths.test.js +63 -0
- package/packages/analytics-v1.1/__tests__/utils/clientHint.test.js +87 -0
- package/packages/analytics-v1.1/__tests__/utils/eventProcessorUtils.test.js +264 -0
- package/packages/analytics-v1.1/__tests__/utils/navigator.test.js +38 -0
- package/packages/analytics-v1.1/__tests__/utils/preProcessQueue.test.js +78 -0
- package/packages/analytics-v1.1/__tests__/utils/screenDetails.test.js +19 -0
- package/packages/analytics-v1.1/__tests__/utils/utils.test.js +69 -0
- package/packages/analytics-v1.1/babel.config.json +14 -0
- package/packages/analytics-v1.1/jest.config.mjs +14 -0
- package/packages/analytics-v1.1/package.json +115 -0
- package/packages/analytics-v1.1/project.json +119 -0
- package/packages/analytics-v1.1/public/index.html +137 -0
- package/packages/analytics-v1.1/rollup-configs/rollup.sdk.browser.mjs +32 -0
- package/packages/analytics-v1.1/rollup-configs/rollup.sdk.npm.mjs +53 -0
- package/packages/analytics-v1.1/rollup-configs/rollup.utilities.mjs +160 -0
- package/packages/analytics-v1.1/src/core/analytics.js +1669 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/CookieConsentFactory.js +32 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/OneTrust/browser.js +102 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/OneTrust/index.js +1 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/ketch/browser.js +114 -0
- package/packages/analytics-v1.1/src/features/core/cookieConsent/ketch/index.js +1 -0
- package/packages/analytics-v1.1/src/features/core/deviceModeTransformation/transformationHandler.js +196 -0
- package/packages/analytics-v1.1/src/features/core/deviceModeTransformation/util.js +23 -0
- package/packages/analytics-v1.1/src/features/core/metrics/errorReporting/ErrorReportingService.js +116 -0
- package/packages/analytics-v1.1/src/features/core/metrics/errorReporting/providers/Bugsnag.js +247 -0
- package/packages/analytics-v1.1/src/features/core/session/index.js +207 -0
- package/packages/analytics-v1.1/src/utils/EventRepository.js +79 -0
- package/packages/analytics-v1.1/src/utils/IntegrationsData.js +56 -0
- package/packages/analytics-v1.1/src/utils/JSFileLoader.js +66 -0
- package/packages/analytics-v1.1/src/utils/PreProcessQueue.js +66 -0
- package/packages/analytics-v1.1/src/utils/RudderApp.js +9 -0
- package/packages/analytics-v1.1/src/utils/RudderContext.js +23 -0
- package/packages/analytics-v1.1/src/utils/RudderElement.js +33 -0
- package/packages/analytics-v1.1/src/utils/RudderElementBuilder.js +29 -0
- package/packages/analytics-v1.1/src/utils/RudderInfo.js +41 -0
- package/packages/analytics-v1.1/src/utils/RudderMessage.js +28 -0
- package/packages/analytics-v1.1/src/utils/beaconQueue.js +140 -0
- package/packages/analytics-v1.1/src/utils/cdnPaths.js +43 -0
- package/packages/analytics-v1.1/src/utils/clientHint.js +28 -0
- package/packages/analytics-v1.1/src/utils/constants.js +70 -0
- package/packages/analytics-v1.1/src/utils/eventProcessorUtils.js +53 -0
- package/packages/analytics-v1.1/src/utils/linker/base64decoder.js +29 -0
- package/packages/analytics-v1.1/src/utils/linker/crc32.js +42 -0
- package/packages/analytics-v1.1/src/utils/linker/index.js +134 -0
- package/packages/analytics-v1.1/src/utils/linker/userLib.js +20 -0
- package/packages/analytics-v1.1/src/utils/navigator.js +32 -0
- package/packages/analytics-v1.1/src/utils/pageProperties.js +74 -0
- package/packages/analytics-v1.1/src/utils/screenDetails.js +23 -0
- package/packages/analytics-v1.1/src/utils/utils.js +423 -0
- package/packages/analytics-v1.1/src/utils/xhrModule.js +117 -0
- package/packages/analytics-v1.1/tsconfig.json +8 -0
- package/packages/analytics-v1.1/tsconfig.spec.json +26 -0
- package/packages/analytics-v1.1/types/index.d.ts +472 -0
- package/packages/analytics-v1.1/types/service-worker/index.d.ts +220 -0
- package/packages/loading-scripts/.env.example +11 -0
- package/packages/loading-scripts/.jscpd.json +17 -0
- package/packages/loading-scripts/CHANGELOG.md +130 -0
- package/packages/loading-scripts/CHANGELOG_LATEST.md +2 -0
- package/packages/loading-scripts/LICENSE +21 -0
- package/packages/loading-scripts/README.md +26 -0
- package/packages/loading-scripts/__fixtures__/.gitkeep +0 -0
- package/packages/loading-scripts/__mocks__/.gitkeep +0 -0
- package/packages/loading-scripts/__tests__/.gitkeep +0 -0
- package/packages/loading-scripts/babel.config.json +14 -0
- package/packages/loading-scripts/jest.config.mjs +14 -0
- package/packages/loading-scripts/package.json +62 -0
- package/packages/loading-scripts/project.json +101 -0
- package/packages/loading-scripts/public/index.html +180 -0
- package/packages/loading-scripts/rollup.config.mjs +112 -0
- package/packages/loading-scripts/src/index.ts +106 -0
- package/packages/loading-scripts/src/types/rudderanalytics.d.ts +16 -0
- package/packages/loading-scripts/tsconfig.json +15 -0
- package/packages/loading-scripts/tsconfig.spec.json +22 -0
- package/packages/sanity-suite/.env.example +39 -0
- package/packages/sanity-suite/.jscpd.json +17 -0
- package/packages/sanity-suite/CHANGELOG.md +154 -0
- package/packages/sanity-suite/LICENSE +21 -0
- package/packages/sanity-suite/README.md +37 -0
- package/packages/sanity-suite/__fixtures__/alias1.json +141 -0
- package/packages/sanity-suite/__fixtures__/alias2.json +101 -0
- package/packages/sanity-suite/__fixtures__/alias3.json +101 -0
- package/packages/sanity-suite/__fixtures__/alias4.json +101 -0
- package/packages/sanity-suite/__fixtures__/alias5.json +107 -0
- package/packages/sanity-suite/__fixtures__/alias6.json +141 -0
- package/packages/sanity-suite/__fixtures__/eventFiltering1.json +69 -0
- package/packages/sanity-suite/__fixtures__/eventFiltering2.json +69 -0
- package/packages/sanity-suite/__fixtures__/eventFiltering3.json +69 -0
- package/packages/sanity-suite/__fixtures__/group1.json +124 -0
- package/packages/sanity-suite/__fixtures__/group2.json +90 -0
- package/packages/sanity-suite/__fixtures__/group3.json +90 -0
- package/packages/sanity-suite/__fixtures__/group4.json +105 -0
- package/packages/sanity-suite/__fixtures__/group5.json +71 -0
- package/packages/sanity-suite/__fixtures__/group6.json +70 -0
- package/packages/sanity-suite/__fixtures__/identify1.json +140 -0
- package/packages/sanity-suite/__fixtures__/identify2.json +106 -0
- package/packages/sanity-suite/__fixtures__/identify3.json +103 -0
- package/packages/sanity-suite/__fixtures__/identify4.json +69 -0
- package/packages/sanity-suite/__fixtures__/identify5.json +106 -0
- package/packages/sanity-suite/__fixtures__/identify6.json +107 -0
- package/packages/sanity-suite/__fixtures__/identify7.json +106 -0
- package/packages/sanity-suite/__fixtures__/identify8.json +107 -0
- package/packages/sanity-suite/__fixtures__/page1.json +123 -0
- package/packages/sanity-suite/__fixtures__/page2.json +90 -0
- package/packages/sanity-suite/__fixtures__/page3.json +90 -0
- package/packages/sanity-suite/__fixtures__/page4.json +116 -0
- package/packages/sanity-suite/__fixtures__/page5.json +83 -0
- package/packages/sanity-suite/__fixtures__/page6.json +81 -0
- package/packages/sanity-suite/__fixtures__/page7.json +81 -0
- package/packages/sanity-suite/__fixtures__/page8.json +79 -0
- package/packages/sanity-suite/__fixtures__/sourceConfig1.json +1536 -0
- package/packages/sanity-suite/__fixtures__/sourceConfigDMT1.json +665 -0
- package/packages/sanity-suite/__fixtures__/sourceConfigDev1.json +892 -0
- package/packages/sanity-suite/__fixtures__/track1.json +154 -0
- package/packages/sanity-suite/__fixtures__/track2.json +122 -0
- package/packages/sanity-suite/__fixtures__/track3.json +122 -0
- package/packages/sanity-suite/__fixtures__/track4.json +138 -0
- package/packages/sanity-suite/__fixtures__/track5.json +106 -0
- package/packages/sanity-suite/__fixtures__/track6.json +85 -0
- package/packages/sanity-suite/__fixtures__/track7.json +85 -0
- package/packages/sanity-suite/babel.config.json +14 -0
- package/packages/sanity-suite/jest.config.mjs +14 -0
- package/packages/sanity-suite/package.json +83 -0
- package/packages/sanity-suite/project.json +55 -0
- package/packages/sanity-suite/public/v1.1/index-cdn.html +135 -0
- package/packages/sanity-suite/public/v1.1/index-local.html +141 -0
- package/packages/sanity-suite/public/v1.1/index-npm.html +107 -0
- package/packages/sanity-suite/public/v1.1/integrations/index-cdn.html +172 -0
- package/packages/sanity-suite/public/v1.1/integrations/index-local.html +171 -0
- package/packages/sanity-suite/public/v1.1/integrations/index-npm.html +140 -0
- package/packages/sanity-suite/public/v1.1/manualLoadCall/index-cdn.html +172 -0
- package/packages/sanity-suite/public/v1.1/manualLoadCall/index-local.html +171 -0
- package/packages/sanity-suite/public/v1.1/manualLoadCall/index-npm.html +140 -0
- package/packages/sanity-suite/public/v3/index-cdn.html +165 -0
- package/packages/sanity-suite/public/v3/index-local.html +169 -0
- package/packages/sanity-suite/public/v3/index-npm.html +99 -0
- package/packages/sanity-suite/public/v3/integrations/index-cdn.html +196 -0
- package/packages/sanity-suite/public/v3/integrations/index-local.html +198 -0
- package/packages/sanity-suite/public/v3/integrations/index-npm.html +138 -0
- package/packages/sanity-suite/public/v3/manualLoadCall/index-cdn.html +196 -0
- package/packages/sanity-suite/public/v3/manualLoadCall/index-local.html +198 -0
- package/packages/sanity-suite/public/v3/manualLoadCall/index-npm.html +138 -0
- package/packages/sanity-suite/rollup.config.mjs +247 -0
- package/packages/sanity-suite/serve.json +4 -0
- package/packages/sanity-suite/src/ignoredProperties/ignoredProperties.js +183 -0
- package/packages/sanity-suite/src/ignoredProperties/sourceConfigIgnoredProperties.js +144 -0
- package/packages/sanity-suite/src/index-npm-v1.1.ts +53 -0
- package/packages/sanity-suite/src/index-npm.ts +57 -0
- package/packages/sanity-suite/src/index.ts +6 -0
- package/packages/sanity-suite/src/testBook/ResultAssertions.js +77 -0
- package/packages/sanity-suite/src/testBook/TestBook.js +360 -0
- package/packages/sanity-suite/src/testBook/index.js +13 -0
- package/packages/sanity-suite/src/testBookSuites/alias.js +289 -0
- package/packages/sanity-suite/src/testBookSuites/eventFiltering.js +77 -0
- package/packages/sanity-suite/src/testBookSuites/group.js +241 -0
- package/packages/sanity-suite/src/testBookSuites/identify.js +455 -0
- package/packages/sanity-suite/src/testBookSuites/index.js +40 -0
- package/packages/sanity-suite/src/testBookSuites/page.js +259 -0
- package/packages/sanity-suite/src/testBookSuites/sourceConfig.js +89 -0
- package/packages/sanity-suite/src/testBookSuites/sourceConfigDev.js +20 -0
- package/packages/sanity-suite/src/testBookSuites/track.js +448 -0
- package/packages/sanity-suite/src/types/global.d.ts +2 -0
- package/packages/sanity-suite/src/types/rudderanalytics.d.ts +16 -0
- package/packages/sanity-suite/tsconfig.json +14 -0
- package/packages/sanity-suite/tsconfig.spec.json +22 -0
- package/patches/@originjs+vite-plugin-federation+1.3.5.patch +170 -0
- package/patches/@segment+localstorage-retry+1.3.0.patch +123 -0
- package/patches/@segment+top-domain+3.0.1.patch +34 -0
- package/patches/@vespaiach+axios-fetch-adapter+0.3.1.patch +43 -0
- package/patches/crypto-es+2.1.0.patch +103 -0
- package/patches/nx+18.0.5.patch +83 -0
- package/patches/rollup-plugin-generate-html-template+1.7.0.patch +46 -0
- package/scripts/commitizen.js +26 -0
- package/scripts/fix-reports-path-in-github-runner.sh +16 -0
- package/scripts/generate-last-release-changelog.sh +32 -0
- package/scripts/sync-tags-in-nx-projects.sh +24 -0
- package/sonar-project.properties +37 -0
- package/tsconfig.build.json +12 -0
- package/tsconfig.json +49 -0
- package/tsconfig.paths.json +27 -0
- package/types/clipboardJs.d.ts +1 -0
- package/types/component-querystring.d.ts +1 -0
- package/types/component-type.d.ts +1 -0
- package/types/global.d.ts +18 -0
- package/types/join-component.d.ts +1 -0
- package/types/localstorage-retry.d.ts +1 -0
- package/types/loosely-validate-event.d.ts +1 -0
- package/types/user-agent-data-types.d.ts +3 -0
@@ -0,0 +1,1563 @@
|
|
1
|
+
const mapping = [
|
2
|
+
{
|
3
|
+
sourceKeys: 'properties.product_id',
|
4
|
+
destinationKey: 'item_id',
|
5
|
+
},
|
6
|
+
{
|
7
|
+
sourceKeys: 'properties.price',
|
8
|
+
destinationKey: 'price',
|
9
|
+
},
|
10
|
+
];
|
11
|
+
|
12
|
+
const productInfo1 = {
|
13
|
+
product_id: '123',
|
14
|
+
sku: 'G-14',
|
15
|
+
name: 'Cards',
|
16
|
+
price: 14.99,
|
17
|
+
position: 1,
|
18
|
+
category: 'Games',
|
19
|
+
url: 'https://www.website.com/product/path',
|
20
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
21
|
+
};
|
22
|
+
|
23
|
+
const productInfo2 = {
|
24
|
+
currency: 'INR',
|
25
|
+
product_id: '345',
|
26
|
+
sku: 'G-32',
|
27
|
+
name: 'UNO',
|
28
|
+
price: 3.99,
|
29
|
+
position: 2,
|
30
|
+
category: 'Games',
|
31
|
+
};
|
32
|
+
|
33
|
+
const inputProductsArray = [productInfo1, productInfo2];
|
34
|
+
|
35
|
+
const outputProductsArray = [
|
36
|
+
{
|
37
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
38
|
+
index: 1,
|
39
|
+
item_category: 'Games',
|
40
|
+
item_id: '123',
|
41
|
+
item_name: 'Cards',
|
42
|
+
price: 14.99,
|
43
|
+
sku: 'G-14',
|
44
|
+
url: 'https://www.website.com/product/path',
|
45
|
+
},
|
46
|
+
{
|
47
|
+
currency: 'INR',
|
48
|
+
index: 2,
|
49
|
+
item_category: 'Games',
|
50
|
+
item_id: '345',
|
51
|
+
item_name: 'UNO',
|
52
|
+
price: 3.99,
|
53
|
+
sku: 'G-32',
|
54
|
+
},
|
55
|
+
];
|
56
|
+
|
57
|
+
const expectedItemsArray = [
|
58
|
+
{
|
59
|
+
index: 1,
|
60
|
+
item_category: 'Games',
|
61
|
+
item_id: '123',
|
62
|
+
item_name: 'Cards',
|
63
|
+
price: 14.99,
|
64
|
+
},
|
65
|
+
{
|
66
|
+
index: 2,
|
67
|
+
item_category: 'Games',
|
68
|
+
item_id: '345',
|
69
|
+
item_name: 'UNO',
|
70
|
+
price: 3.99,
|
71
|
+
},
|
72
|
+
];
|
73
|
+
|
74
|
+
const identifyEvents = [
|
75
|
+
{
|
76
|
+
description: 'Event with userId and traits',
|
77
|
+
input: {
|
78
|
+
message: {
|
79
|
+
userId: 'user@1',
|
80
|
+
context: {
|
81
|
+
traits: {
|
82
|
+
age: 40,
|
83
|
+
email: 'sdk@gmail.com',
|
84
|
+
phone: '123456',
|
85
|
+
userInterest: 'high',
|
86
|
+
source: 'RudderStack',
|
87
|
+
card_number: '4312 4312 4312 4312'
|
88
|
+
},
|
89
|
+
},
|
90
|
+
integrations: {},
|
91
|
+
},
|
92
|
+
},
|
93
|
+
output: {
|
94
|
+
userId: {
|
95
|
+
user_id: 'user@1',
|
96
|
+
},
|
97
|
+
traits: {
|
98
|
+
age: 40,
|
99
|
+
card_number: '4312 4312 4312 4312',
|
100
|
+
userInterest: 'high',
|
101
|
+
source: 'RudderStack',
|
102
|
+
email: 'sdk@gmail.com',
|
103
|
+
phone: '123456',
|
104
|
+
},
|
105
|
+
},
|
106
|
+
},
|
107
|
+
];
|
108
|
+
|
109
|
+
const trackEvents = [
|
110
|
+
{
|
111
|
+
description: 'Product Search event',
|
112
|
+
input: {
|
113
|
+
message: {
|
114
|
+
event: 'Products Searched',
|
115
|
+
properties: {
|
116
|
+
query: 't-shirts',
|
117
|
+
brand: 'H&M',
|
118
|
+
},
|
119
|
+
integrations: {},
|
120
|
+
},
|
121
|
+
},
|
122
|
+
output: {
|
123
|
+
event: 'search',
|
124
|
+
params: { brand: 'H&M', search_term: 't-shirts', send_to: 'G-123456' },
|
125
|
+
},
|
126
|
+
},
|
127
|
+
{
|
128
|
+
description: 'Product List Viewed event',
|
129
|
+
input: {
|
130
|
+
message: {
|
131
|
+
event: 'Product List Viewed',
|
132
|
+
properties: {
|
133
|
+
list_id: 'list1',
|
134
|
+
category: "What's New",
|
135
|
+
users: {},
|
136
|
+
products: [
|
137
|
+
{
|
138
|
+
product_id: '223344ffdds3ff3',
|
139
|
+
sku: '12345',
|
140
|
+
name: 'Just Another Game',
|
141
|
+
price: 22,
|
142
|
+
rating: '',
|
143
|
+
categories: [],
|
144
|
+
position: 2,
|
145
|
+
category: 'Games and Entertainment',
|
146
|
+
url: 'https://www.myecommercewebsite.com/product',
|
147
|
+
image_url: 'https://www.myecommercewebsite.com/product/path.jpg',
|
148
|
+
},
|
149
|
+
{
|
150
|
+
product_id: '343344ff5567ff3',
|
151
|
+
sku: '12346',
|
152
|
+
name: 'Wrestling Trump Cards',
|
153
|
+
price: 4,
|
154
|
+
rating: '',
|
155
|
+
categories: [],
|
156
|
+
position: 21,
|
157
|
+
category: 'Card Games',
|
158
|
+
},
|
159
|
+
],
|
160
|
+
},
|
161
|
+
integrations: {},
|
162
|
+
},
|
163
|
+
},
|
164
|
+
output: {
|
165
|
+
event: 'view_item_list',
|
166
|
+
params: {
|
167
|
+
item_list_id: 'list1',
|
168
|
+
item_list_name: "What's New",
|
169
|
+
items: [
|
170
|
+
{
|
171
|
+
image_url: 'https://www.myecommercewebsite.com/product/path.jpg',
|
172
|
+
index: 2,
|
173
|
+
item_category: 'Games and Entertainment',
|
174
|
+
item_id: '223344ffdds3ff3',
|
175
|
+
item_name: 'Just Another Game',
|
176
|
+
price: 22,
|
177
|
+
sku: '12345',
|
178
|
+
url: 'https://www.myecommercewebsite.com/product',
|
179
|
+
},
|
180
|
+
{
|
181
|
+
index: 21,
|
182
|
+
item_category: 'Card Games',
|
183
|
+
item_id: '343344ff5567ff3',
|
184
|
+
item_name: 'Wrestling Trump Cards',
|
185
|
+
price: 4,
|
186
|
+
sku: '12346',
|
187
|
+
},
|
188
|
+
],
|
189
|
+
send_to: 'G-123456',
|
190
|
+
},
|
191
|
+
},
|
192
|
+
},
|
193
|
+
{
|
194
|
+
description: 'Product List Filtered',
|
195
|
+
input: {
|
196
|
+
message: {
|
197
|
+
event: 'Product List Filtered',
|
198
|
+
properties: {
|
199
|
+
list_id: 'list1',
|
200
|
+
category: "What's New",
|
201
|
+
products: {
|
202
|
+
list_id: 'dealoftheday',
|
203
|
+
filters: [
|
204
|
+
{
|
205
|
+
type: 'department',
|
206
|
+
value: 'health',
|
207
|
+
},
|
208
|
+
{
|
209
|
+
type: 'price',
|
210
|
+
value: 'under-$75',
|
211
|
+
},
|
212
|
+
],
|
213
|
+
sorts: [
|
214
|
+
{
|
215
|
+
type: 'price',
|
216
|
+
value: 'asc',
|
217
|
+
},
|
218
|
+
],
|
219
|
+
products: [
|
220
|
+
{
|
221
|
+
product_id: '5034221345ffcd672315011',
|
222
|
+
sku: '12345',
|
223
|
+
name: 'Whey Protein',
|
224
|
+
price: 55.45,
|
225
|
+
position: 1,
|
226
|
+
category: 'health',
|
227
|
+
url: 'https://www.myecommercewebsite.com/product/product1123',
|
228
|
+
image_url: 'https://www.example.com/product/1123.jpg',
|
229
|
+
},
|
230
|
+
{
|
231
|
+
product_id: '121244455323232326677232',
|
232
|
+
sku: '345667',
|
233
|
+
name: 'Boost',
|
234
|
+
price: 47.85,
|
235
|
+
position: 12,
|
236
|
+
category: 'health',
|
237
|
+
},
|
238
|
+
],
|
239
|
+
},
|
240
|
+
},
|
241
|
+
integrations: {},
|
242
|
+
},
|
243
|
+
},
|
244
|
+
output: {
|
245
|
+
event: 'Product_List_Filtered',
|
246
|
+
params: {
|
247
|
+
category: "What's New",
|
248
|
+
list_id: 'list1',
|
249
|
+
products_filters_0_type: 'department',
|
250
|
+
products_filters_0_value: 'health',
|
251
|
+
products_filters_1_type: 'price',
|
252
|
+
products_filters_1_value: 'under-$75',
|
253
|
+
products_list_id: 'dealoftheday',
|
254
|
+
products_products_0_category: 'health',
|
255
|
+
products_products_0_image_url: 'https://www.example.com/product/1123.jpg',
|
256
|
+
products_products_0_name: 'Whey Protein',
|
257
|
+
products_products_0_position: 1,
|
258
|
+
products_products_0_price: 55.45,
|
259
|
+
products_products_0_product_id: '5034221345ffcd672315011',
|
260
|
+
products_products_0_sku: '12345',
|
261
|
+
products_products_0_url: 'https://www.myecommercewebsite.com/product/product1123',
|
262
|
+
products_products_1_category: 'health',
|
263
|
+
products_products_1_name: 'Boost',
|
264
|
+
products_products_1_position: 12,
|
265
|
+
products_products_1_price: 47.85,
|
266
|
+
products_products_1_product_id: '121244455323232326677232',
|
267
|
+
products_products_1_sku: '345667',
|
268
|
+
products_sorts_0_type: 'price',
|
269
|
+
products_sorts_0_value: 'asc',
|
270
|
+
send_to: 'G-123456',
|
271
|
+
},
|
272
|
+
},
|
273
|
+
},
|
274
|
+
{
|
275
|
+
description: 'Promotion Viewed event',
|
276
|
+
input: {
|
277
|
+
message: {
|
278
|
+
event: 'Promotion Viewed',
|
279
|
+
properties: {
|
280
|
+
promotion_id: 'promo1',
|
281
|
+
creative: 'banner1',
|
282
|
+
name: 'sale',
|
283
|
+
position: 'home_top',
|
284
|
+
},
|
285
|
+
integrations: {},
|
286
|
+
},
|
287
|
+
},
|
288
|
+
output: {
|
289
|
+
event: 'view_promotion',
|
290
|
+
params: {
|
291
|
+
creative_name: 'banner1',
|
292
|
+
creative_slot: 'home_top',
|
293
|
+
promotion_id: 'promo1',
|
294
|
+
promotion_name: 'sale',
|
295
|
+
send_to: 'G-123456',
|
296
|
+
},
|
297
|
+
},
|
298
|
+
},
|
299
|
+
{
|
300
|
+
description: 'Promotion Clicked event',
|
301
|
+
input: {
|
302
|
+
message: {
|
303
|
+
event: 'Promotion Clicked',
|
304
|
+
properties: {
|
305
|
+
promotion_id: 'promo1',
|
306
|
+
creative: 'banner1',
|
307
|
+
name: 'sale',
|
308
|
+
position: 'home_top',
|
309
|
+
},
|
310
|
+
integrations: {},
|
311
|
+
},
|
312
|
+
},
|
313
|
+
output: {
|
314
|
+
event: 'select_promotion',
|
315
|
+
params: {
|
316
|
+
creative_name: 'banner1',
|
317
|
+
creative_slot: 'home_top',
|
318
|
+
promotion_id: 'promo1',
|
319
|
+
promotion_name: 'sale',
|
320
|
+
send_to: 'G-123456',
|
321
|
+
},
|
322
|
+
},
|
323
|
+
},
|
324
|
+
{
|
325
|
+
description: 'Product Clicked event',
|
326
|
+
input: {
|
327
|
+
message: {
|
328
|
+
event: 'Product Clicked',
|
329
|
+
properties: {
|
330
|
+
product_id: '123',
|
331
|
+
sku: 'F15',
|
332
|
+
category: 'Games',
|
333
|
+
name: 'Game',
|
334
|
+
brand: 'Gamepro',
|
335
|
+
variant: '111',
|
336
|
+
price: 13.49,
|
337
|
+
quantity: 11,
|
338
|
+
coupon: 'DISC21',
|
339
|
+
position: 1,
|
340
|
+
url: 'https://www.website.com/product/path',
|
341
|
+
image_url: 'https://www.website.com/product/path.webp',
|
342
|
+
},
|
343
|
+
integrations: {},
|
344
|
+
},
|
345
|
+
},
|
346
|
+
output: {
|
347
|
+
event: 'select_item',
|
348
|
+
params: {
|
349
|
+
image_url: 'https://www.website.com/product/path.webp',
|
350
|
+
item_list_name: 'Games',
|
351
|
+
items: [
|
352
|
+
{
|
353
|
+
coupon: 'DISC21',
|
354
|
+
index: 1,
|
355
|
+
item_brand: 'Gamepro',
|
356
|
+
item_category: 'Games',
|
357
|
+
item_id: '123',
|
358
|
+
item_name: 'Game',
|
359
|
+
item_variant: '111',
|
360
|
+
price: 13.49,
|
361
|
+
quantity: 11,
|
362
|
+
},
|
363
|
+
],
|
364
|
+
sku: 'F15',
|
365
|
+
url: 'https://www.website.com/product/path',
|
366
|
+
send_to: 'G-123456',
|
367
|
+
},
|
368
|
+
},
|
369
|
+
},
|
370
|
+
{
|
371
|
+
description: 'Product Viewed event',
|
372
|
+
input: {
|
373
|
+
message: {
|
374
|
+
userId: '1234',
|
375
|
+
event: 'Product Viewed',
|
376
|
+
properties: {
|
377
|
+
product_id: '123',
|
378
|
+
sku: 'F15',
|
379
|
+
category: 'Games',
|
380
|
+
name: 'Game',
|
381
|
+
brand: 'Gamepro',
|
382
|
+
variant: '111',
|
383
|
+
price: 13.49,
|
384
|
+
quantity: 11,
|
385
|
+
coupon: 'DISC21',
|
386
|
+
currency: 'USD',
|
387
|
+
position: 1,
|
388
|
+
url: 'https://www.website.com/product/path',
|
389
|
+
image_url: 'https://www.website.com/product/path.webp',
|
390
|
+
},
|
391
|
+
},
|
392
|
+
},
|
393
|
+
output: {
|
394
|
+
event: 'view_item',
|
395
|
+
params: {
|
396
|
+
image_url: 'https://www.website.com/product/path.webp',
|
397
|
+
currency: 'USD',
|
398
|
+
value: 13.49,
|
399
|
+
items: [
|
400
|
+
{
|
401
|
+
coupon: 'DISC21',
|
402
|
+
index: 1,
|
403
|
+
item_brand: 'Gamepro',
|
404
|
+
item_category: 'Games',
|
405
|
+
item_id: '123',
|
406
|
+
item_name: 'Game',
|
407
|
+
item_variant: '111',
|
408
|
+
price: 13.49,
|
409
|
+
quantity: 11,
|
410
|
+
},
|
411
|
+
],
|
412
|
+
sku: 'F15',
|
413
|
+
url: 'https://www.website.com/product/path',
|
414
|
+
user_id: '1234',
|
415
|
+
send_to: 'G-123456',
|
416
|
+
},
|
417
|
+
},
|
418
|
+
},
|
419
|
+
{
|
420
|
+
description: 'Product Added event',
|
421
|
+
input: {
|
422
|
+
message: {
|
423
|
+
event: 'Product Added',
|
424
|
+
properties: {
|
425
|
+
product_id: '123',
|
426
|
+
sku: 'F15',
|
427
|
+
category: 'Games',
|
428
|
+
name: 'Game',
|
429
|
+
brand: 'Gamepro',
|
430
|
+
variant: '111',
|
431
|
+
price: 13.49,
|
432
|
+
quantity: 11,
|
433
|
+
coupon: 'DISC21',
|
434
|
+
position: 1,
|
435
|
+
url: 'https://www.website.com/product/path',
|
436
|
+
image_url: 'https://www.website.com/product/path.webp',
|
437
|
+
},
|
438
|
+
},
|
439
|
+
},
|
440
|
+
output: {
|
441
|
+
event: 'add_to_cart',
|
442
|
+
params: {
|
443
|
+
image_url: 'https://www.website.com/product/path.webp',
|
444
|
+
currency: 'USD',
|
445
|
+
value: 148.39,
|
446
|
+
items: [
|
447
|
+
{
|
448
|
+
coupon: 'DISC21',
|
449
|
+
index: 1,
|
450
|
+
item_brand: 'Gamepro',
|
451
|
+
item_category: 'Games',
|
452
|
+
item_id: '123',
|
453
|
+
item_name: 'Game',
|
454
|
+
item_variant: '111',
|
455
|
+
price: 13.49,
|
456
|
+
quantity: 11,
|
457
|
+
},
|
458
|
+
],
|
459
|
+
sku: 'F15',
|
460
|
+
url: 'https://www.website.com/product/path',
|
461
|
+
send_to: 'G-123456',
|
462
|
+
},
|
463
|
+
},
|
464
|
+
},
|
465
|
+
{
|
466
|
+
description: 'Product Removed event',
|
467
|
+
input: {
|
468
|
+
message: {
|
469
|
+
event: 'Product Removed',
|
470
|
+
properties: {
|
471
|
+
product_id: '123',
|
472
|
+
sku: 'F15',
|
473
|
+
category: 'Games',
|
474
|
+
name: 'Game',
|
475
|
+
brand: 'Gamepro',
|
476
|
+
variant: '111',
|
477
|
+
price: 13.49,
|
478
|
+
quantity: 11,
|
479
|
+
coupon: 'DISC21',
|
480
|
+
position: 1,
|
481
|
+
url: 'https://www.website.com/product/path',
|
482
|
+
image_url: 'https://www.website.com/product/path.webp',
|
483
|
+
},
|
484
|
+
},
|
485
|
+
},
|
486
|
+
output: {
|
487
|
+
event: 'remove_from_cart',
|
488
|
+
params: {
|
489
|
+
image_url: 'https://www.website.com/product/path.webp',
|
490
|
+
currency: 'USD',
|
491
|
+
value: 148.39,
|
492
|
+
items: [
|
493
|
+
{
|
494
|
+
coupon: 'DISC21',
|
495
|
+
index: 1,
|
496
|
+
item_brand: 'Gamepro',
|
497
|
+
item_category: 'Games',
|
498
|
+
item_id: '123',
|
499
|
+
item_name: 'Game',
|
500
|
+
item_variant: '111',
|
501
|
+
price: 13.49,
|
502
|
+
quantity: 11,
|
503
|
+
},
|
504
|
+
],
|
505
|
+
sku: 'F15',
|
506
|
+
url: 'https://www.website.com/product/path',
|
507
|
+
send_to: 'G-123456',
|
508
|
+
},
|
509
|
+
},
|
510
|
+
},
|
511
|
+
{
|
512
|
+
description: 'Cart Viewed event',
|
513
|
+
input: {
|
514
|
+
message: {
|
515
|
+
event: 'Cart Viewed',
|
516
|
+
properties: {
|
517
|
+
cart_id: '12345',
|
518
|
+
total: 21,
|
519
|
+
products: [
|
520
|
+
{
|
521
|
+
product_id: '123',
|
522
|
+
sku: 'G-14',
|
523
|
+
name: 'Cards',
|
524
|
+
price: 14.99,
|
525
|
+
position: 1,
|
526
|
+
category: 'Games',
|
527
|
+
url: 'https://www.website.com/product/path',
|
528
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
529
|
+
},
|
530
|
+
{
|
531
|
+
product_id: '345',
|
532
|
+
sku: 'G-32',
|
533
|
+
name: 'UNO',
|
534
|
+
price: 3.99,
|
535
|
+
position: 2,
|
536
|
+
category: 'Games',
|
537
|
+
},
|
538
|
+
],
|
539
|
+
},
|
540
|
+
},
|
541
|
+
},
|
542
|
+
output: {
|
543
|
+
event: 'view_cart',
|
544
|
+
params: {
|
545
|
+
cart_id: '12345',
|
546
|
+
currency: 'USD',
|
547
|
+
value: 21,
|
548
|
+
items: [
|
549
|
+
{
|
550
|
+
index: 1,
|
551
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
552
|
+
item_category: 'Games',
|
553
|
+
item_id: '123',
|
554
|
+
item_name: 'Cards',
|
555
|
+
price: 14.99,
|
556
|
+
sku: 'G-14',
|
557
|
+
url: 'https://www.website.com/product/path',
|
558
|
+
},
|
559
|
+
{
|
560
|
+
index: 2,
|
561
|
+
item_category: 'Games',
|
562
|
+
item_id: '345',
|
563
|
+
item_name: 'UNO',
|
564
|
+
price: 3.99,
|
565
|
+
sku: 'G-32',
|
566
|
+
},
|
567
|
+
],
|
568
|
+
send_to: 'G-123456',
|
569
|
+
},
|
570
|
+
},
|
571
|
+
},
|
572
|
+
{
|
573
|
+
description: 'Checkout Started event',
|
574
|
+
input: {
|
575
|
+
message: {
|
576
|
+
event: 'Checkout Started',
|
577
|
+
properties: {
|
578
|
+
order_id: '1234',
|
579
|
+
affiliation: 'Apple Store',
|
580
|
+
value: 20,
|
581
|
+
revenue: 15.0,
|
582
|
+
shipping: 4,
|
583
|
+
tax: 1,
|
584
|
+
discount: 1.5,
|
585
|
+
coupon: 'ImagePro',
|
586
|
+
currency: 'USD',
|
587
|
+
products: [
|
588
|
+
{
|
589
|
+
product_id: '123',
|
590
|
+
sku: 'G-32',
|
591
|
+
name: 'Monopoly',
|
592
|
+
price: 14,
|
593
|
+
quantity: 1,
|
594
|
+
category: 'Games',
|
595
|
+
url: 'https://www.website.com/product/path',
|
596
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
597
|
+
},
|
598
|
+
{
|
599
|
+
product_id: '345',
|
600
|
+
sku: 'F-32',
|
601
|
+
name: 'UNO',
|
602
|
+
price: 3.45,
|
603
|
+
quantity: 2,
|
604
|
+
category: 'Games',
|
605
|
+
},
|
606
|
+
],
|
607
|
+
},
|
608
|
+
},
|
609
|
+
},
|
610
|
+
output: {
|
611
|
+
event: 'begin_checkout',
|
612
|
+
params: {
|
613
|
+
currency: 'USD',
|
614
|
+
affiliation: 'Apple Store',
|
615
|
+
coupon: 'ImagePro',
|
616
|
+
value: 20,
|
617
|
+
order_id: '1234',
|
618
|
+
shipping: 4,
|
619
|
+
tax: 1,
|
620
|
+
discount: 1.5,
|
621
|
+
items: [
|
622
|
+
{
|
623
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
624
|
+
item_category: 'Games',
|
625
|
+
item_id: '123',
|
626
|
+
item_name: 'Monopoly',
|
627
|
+
price: 14,
|
628
|
+
sku: 'G-32',
|
629
|
+
quantity: 1,
|
630
|
+
url: 'https://www.website.com/product/path',
|
631
|
+
},
|
632
|
+
{
|
633
|
+
item_category: 'Games',
|
634
|
+
item_id: '345',
|
635
|
+
item_name: 'UNO',
|
636
|
+
price: 3.45,
|
637
|
+
quantity: 2,
|
638
|
+
sku: 'F-32',
|
639
|
+
},
|
640
|
+
],
|
641
|
+
send_to: 'G-123456',
|
642
|
+
},
|
643
|
+
},
|
644
|
+
},
|
645
|
+
{
|
646
|
+
description: 'Checkout Step Viewed event',
|
647
|
+
input: {
|
648
|
+
message: {
|
649
|
+
event: 'Checkout Step Viewed',
|
650
|
+
properties: {
|
651
|
+
checkout_id: '123',
|
652
|
+
step: 1,
|
653
|
+
shipping_method: 'DHL',
|
654
|
+
payment_method: 'Mastercard',
|
655
|
+
},
|
656
|
+
},
|
657
|
+
},
|
658
|
+
output: {
|
659
|
+
event: 'Checkout_Step_Viewed',
|
660
|
+
params: {
|
661
|
+
checkout_id: '123',
|
662
|
+
step: 1,
|
663
|
+
shipping_method: 'DHL',
|
664
|
+
payment_method: 'Mastercard',
|
665
|
+
send_to: 'G-123456',
|
666
|
+
},
|
667
|
+
},
|
668
|
+
},
|
669
|
+
{
|
670
|
+
description: 'Checkout Step Completed event',
|
671
|
+
input: {
|
672
|
+
message: {
|
673
|
+
event: 'Checkout Step Completed',
|
674
|
+
properties: {
|
675
|
+
total: 13,
|
676
|
+
checkout_id: '123',
|
677
|
+
step: 1,
|
678
|
+
shipping_method: 'DHL',
|
679
|
+
payment_method: 'Mastercard',
|
680
|
+
},
|
681
|
+
},
|
682
|
+
},
|
683
|
+
output: {
|
684
|
+
event: 'add_shipping_info',
|
685
|
+
params: {
|
686
|
+
currency: 'USD',
|
687
|
+
checkout_id: '123',
|
688
|
+
step: 1,
|
689
|
+
shipping_tier: 'DHL',
|
690
|
+
payment_method: 'Mastercard',
|
691
|
+
value: 13,
|
692
|
+
send_to: 'G-123456',
|
693
|
+
},
|
694
|
+
},
|
695
|
+
},
|
696
|
+
{
|
697
|
+
description: 'Payment Info Entered event',
|
698
|
+
input: {
|
699
|
+
message: {
|
700
|
+
event: 'Payment Info Entered',
|
701
|
+
properties: {
|
702
|
+
total: 10,
|
703
|
+
checkout_id: '12344',
|
704
|
+
order_id: '123',
|
705
|
+
},
|
706
|
+
},
|
707
|
+
},
|
708
|
+
output: {
|
709
|
+
event: 'add_payment_info',
|
710
|
+
params: {
|
711
|
+
currency: 'USD',
|
712
|
+
checkout_id: '12344',
|
713
|
+
order_id: '123',
|
714
|
+
value: 10,
|
715
|
+
send_to: 'G-123456',
|
716
|
+
},
|
717
|
+
},
|
718
|
+
},
|
719
|
+
{
|
720
|
+
description: 'Order Updated event',
|
721
|
+
input: {
|
722
|
+
message: {
|
723
|
+
event: 'Order Updated',
|
724
|
+
properties: {
|
725
|
+
order_id: '1234',
|
726
|
+
affiliation: 'Apple Store',
|
727
|
+
value: 20,
|
728
|
+
revenue: 15.0,
|
729
|
+
shipping: 22,
|
730
|
+
tax: 1,
|
731
|
+
discount: 1.5,
|
732
|
+
coupon: 'ImagePro',
|
733
|
+
currency: 'USD',
|
734
|
+
products: [
|
735
|
+
{
|
736
|
+
product_id: '123',
|
737
|
+
sku: 'G-32',
|
738
|
+
name: 'Monopoly',
|
739
|
+
price: 14,
|
740
|
+
quantity: 1,
|
741
|
+
category: 'Games',
|
742
|
+
url: 'https://www.website.com/product/path',
|
743
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
744
|
+
},
|
745
|
+
{
|
746
|
+
product_id: '345',
|
747
|
+
sku: 'F-32',
|
748
|
+
name: 'UNO',
|
749
|
+
price: 3.45,
|
750
|
+
quantity: 2,
|
751
|
+
category: 'Games',
|
752
|
+
},
|
753
|
+
],
|
754
|
+
},
|
755
|
+
},
|
756
|
+
},
|
757
|
+
output: {
|
758
|
+
event: 'Order_Updated',
|
759
|
+
params: {
|
760
|
+
affiliation: 'Apple Store',
|
761
|
+
coupon: 'ImagePro',
|
762
|
+
currency: 'USD',
|
763
|
+
discount: 1.5,
|
764
|
+
order_id: '1234',
|
765
|
+
products_0_category: 'Games',
|
766
|
+
products_0_image_url: 'https://www.website.com/product/path.jpg',
|
767
|
+
products_0_name: 'Monopoly',
|
768
|
+
products_0_price: 14,
|
769
|
+
products_0_product_id: '123',
|
770
|
+
products_0_quantity: 1,
|
771
|
+
products_0_sku: 'G-32',
|
772
|
+
products_0_url: 'https://www.website.com/product/path',
|
773
|
+
products_1_category: 'Games',
|
774
|
+
products_1_name: 'UNO',
|
775
|
+
products_1_price: 3.45,
|
776
|
+
products_1_product_id: '345',
|
777
|
+
products_1_quantity: 2,
|
778
|
+
products_1_sku: 'F-32',
|
779
|
+
revenue: 15,
|
780
|
+
send_to: 'G-123456',
|
781
|
+
shipping: 22,
|
782
|
+
tax: 1,
|
783
|
+
value: 20,
|
784
|
+
},
|
785
|
+
},
|
786
|
+
},
|
787
|
+
{
|
788
|
+
description: 'Order Completed event',
|
789
|
+
input: {
|
790
|
+
message: {
|
791
|
+
event: 'Order Completed',
|
792
|
+
properties: {
|
793
|
+
checkout_id: '12345',
|
794
|
+
order_id: '1234',
|
795
|
+
affiliation: 'Apple Store',
|
796
|
+
total: 20,
|
797
|
+
revenue: 15.0,
|
798
|
+
shipping: 4,
|
799
|
+
tax: 1,
|
800
|
+
discount: 1.5,
|
801
|
+
coupon: 'ImagePro',
|
802
|
+
currency: 'USD',
|
803
|
+
products: [
|
804
|
+
{
|
805
|
+
product_id: '123',
|
806
|
+
sku: 'G-32',
|
807
|
+
name: 'Monopoly',
|
808
|
+
price: 14,
|
809
|
+
quantity: 1,
|
810
|
+
category: 'Games',
|
811
|
+
url: 'https://www.website.com/product/path',
|
812
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
813
|
+
},
|
814
|
+
{
|
815
|
+
product_id: '345',
|
816
|
+
sku: 'F-32',
|
817
|
+
name: 'UNO',
|
818
|
+
price: 3.45,
|
819
|
+
quantity: 2,
|
820
|
+
category: 'Games',
|
821
|
+
},
|
822
|
+
],
|
823
|
+
},
|
824
|
+
},
|
825
|
+
},
|
826
|
+
output: {
|
827
|
+
event: 'purchase',
|
828
|
+
params: {
|
829
|
+
affiliation: 'Apple Store',
|
830
|
+
checkout_id: '12345',
|
831
|
+
coupon: 'ImagePro',
|
832
|
+
currency: 'USD',
|
833
|
+
discount: 1.5,
|
834
|
+
items: [
|
835
|
+
{
|
836
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
837
|
+
item_category: 'Games',
|
838
|
+
item_id: '123',
|
839
|
+
item_name: 'Monopoly',
|
840
|
+
price: 14,
|
841
|
+
quantity: 1,
|
842
|
+
sku: 'G-32',
|
843
|
+
url: 'https://www.website.com/product/path',
|
844
|
+
},
|
845
|
+
{
|
846
|
+
item_category: 'Games',
|
847
|
+
item_id: '345',
|
848
|
+
item_name: 'UNO',
|
849
|
+
price: 3.45,
|
850
|
+
quantity: 2,
|
851
|
+
sku: 'F-32',
|
852
|
+
},
|
853
|
+
],
|
854
|
+
send_to: 'G-123456',
|
855
|
+
shipping: 4,
|
856
|
+
tax: 1,
|
857
|
+
transaction_id: '1234',
|
858
|
+
value: 20,
|
859
|
+
},
|
860
|
+
},
|
861
|
+
},
|
862
|
+
{
|
863
|
+
description: 'Order Refunded event',
|
864
|
+
input: {
|
865
|
+
message: {
|
866
|
+
event: 'Order Refunded',
|
867
|
+
properties: {
|
868
|
+
order_id: '1234',
|
869
|
+
total: 20,
|
870
|
+
currency: 'USD',
|
871
|
+
products: [
|
872
|
+
{
|
873
|
+
product_id: '123',
|
874
|
+
sku: 'G-32',
|
875
|
+
name: 'Monopoly',
|
876
|
+
price: 17,
|
877
|
+
quantity: 1,
|
878
|
+
category: 'Games',
|
879
|
+
url: 'https://www.website.com/product/path',
|
880
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
881
|
+
},
|
882
|
+
{
|
883
|
+
product_id: '345',
|
884
|
+
sku: 'F-32',
|
885
|
+
name: 'UNO',
|
886
|
+
price: 3,
|
887
|
+
quantity: 1,
|
888
|
+
category: 'Games',
|
889
|
+
},
|
890
|
+
],
|
891
|
+
},
|
892
|
+
},
|
893
|
+
},
|
894
|
+
output: {
|
895
|
+
event: 'refund',
|
896
|
+
params: {
|
897
|
+
currency: 'USD',
|
898
|
+
items: [
|
899
|
+
{
|
900
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
901
|
+
item_category: 'Games',
|
902
|
+
item_id: '123',
|
903
|
+
item_name: 'Monopoly',
|
904
|
+
price: 17,
|
905
|
+
quantity: 1,
|
906
|
+
sku: 'G-32',
|
907
|
+
url: 'https://www.website.com/product/path',
|
908
|
+
},
|
909
|
+
{
|
910
|
+
item_category: 'Games',
|
911
|
+
item_id: '345',
|
912
|
+
item_name: 'UNO',
|
913
|
+
price: 3,
|
914
|
+
quantity: 1,
|
915
|
+
sku: 'F-32',
|
916
|
+
},
|
917
|
+
],
|
918
|
+
send_to: 'G-123456',
|
919
|
+
transaction_id: '1234',
|
920
|
+
value: 20,
|
921
|
+
},
|
922
|
+
},
|
923
|
+
},
|
924
|
+
{
|
925
|
+
description: 'Order Cancelled event',
|
926
|
+
input: {
|
927
|
+
message: {
|
928
|
+
event: 'Order Cancelled',
|
929
|
+
properties: {
|
930
|
+
order_id: '1234',
|
931
|
+
affiliation: 'Apple Store',
|
932
|
+
total: 20,
|
933
|
+
revenue: 15.0,
|
934
|
+
shipping: 4,
|
935
|
+
tax: 1,
|
936
|
+
discount: 1.5,
|
937
|
+
coupon: 'ImagePro',
|
938
|
+
currency: 'USD',
|
939
|
+
products: [
|
940
|
+
{
|
941
|
+
product_id: '123',
|
942
|
+
sku: 'G-32',
|
943
|
+
name: 'Monopoly',
|
944
|
+
price: 14,
|
945
|
+
quantity: 1,
|
946
|
+
category: 'Games',
|
947
|
+
url: 'https://www.website.com/product/path',
|
948
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
949
|
+
},
|
950
|
+
{
|
951
|
+
product_id: '345',
|
952
|
+
sku: 'F-32',
|
953
|
+
name: 'UNO',
|
954
|
+
price: 3.45,
|
955
|
+
quantity: 2,
|
956
|
+
category: 'Games',
|
957
|
+
},
|
958
|
+
],
|
959
|
+
},
|
960
|
+
},
|
961
|
+
},
|
962
|
+
output: {
|
963
|
+
event: 'Order_Cancelled',
|
964
|
+
params: {
|
965
|
+
discount: 1.5,
|
966
|
+
order_id: '1234',
|
967
|
+
products_0_category: 'Games',
|
968
|
+
products_0_image_url: 'https://www.website.com/product/path.jpg',
|
969
|
+
products_0_name: 'Monopoly',
|
970
|
+
products_0_price: 14,
|
971
|
+
products_0_product_id: '123',
|
972
|
+
products_0_quantity: 1,
|
973
|
+
products_0_sku: 'G-32',
|
974
|
+
products_0_url: 'https://www.website.com/product/path',
|
975
|
+
products_1_category: 'Games',
|
976
|
+
products_1_name: 'UNO',
|
977
|
+
products_1_price: 3.45,
|
978
|
+
products_1_product_id: '345',
|
979
|
+
products_1_quantity: 2,
|
980
|
+
products_1_sku: 'F-32',
|
981
|
+
revenue: 15,
|
982
|
+
send_to: 'G-123456',
|
983
|
+
shipping: 4,
|
984
|
+
tax: 1,
|
985
|
+
total: 20,
|
986
|
+
affiliation: 'Apple Store',
|
987
|
+
coupon: 'ImagePro',
|
988
|
+
currency: 'USD',
|
989
|
+
},
|
990
|
+
},
|
991
|
+
},
|
992
|
+
{
|
993
|
+
description: 'Coupon Entered event',
|
994
|
+
input: {
|
995
|
+
message: {
|
996
|
+
event: 'Coupon Entered',
|
997
|
+
properties: {
|
998
|
+
order_id: '12345',
|
999
|
+
cart_id: '1222111',
|
1000
|
+
coupon_id: 'disc20',
|
1001
|
+
},
|
1002
|
+
},
|
1003
|
+
},
|
1004
|
+
output: {
|
1005
|
+
event: 'Coupon_Entered',
|
1006
|
+
params: {
|
1007
|
+
cart_id: '1222111',
|
1008
|
+
coupon_id: 'disc20',
|
1009
|
+
order_id: '12345',
|
1010
|
+
send_to: 'G-123456',
|
1011
|
+
},
|
1012
|
+
},
|
1013
|
+
},
|
1014
|
+
{
|
1015
|
+
description: 'Coupon Applied event',
|
1016
|
+
input: {
|
1017
|
+
message: {
|
1018
|
+
event: 'Coupon Applied',
|
1019
|
+
properties: {
|
1020
|
+
order_id: '1223455',
|
1021
|
+
cart_id: '123566',
|
1022
|
+
coupon_id: '23321',
|
1023
|
+
coupon_name: 'Disc21',
|
1024
|
+
discount: 21.0,
|
1025
|
+
},
|
1026
|
+
},
|
1027
|
+
},
|
1028
|
+
output: {
|
1029
|
+
event: 'Coupon_Applied',
|
1030
|
+
params: {
|
1031
|
+
cart_id: '123566',
|
1032
|
+
coupon_id: '23321',
|
1033
|
+
coupon_name: 'Disc21',
|
1034
|
+
discount: 21,
|
1035
|
+
order_id: '1223455',
|
1036
|
+
send_to: 'G-123456',
|
1037
|
+
},
|
1038
|
+
},
|
1039
|
+
},
|
1040
|
+
{
|
1041
|
+
description: 'Coupon Denied event',
|
1042
|
+
input: {
|
1043
|
+
message: {
|
1044
|
+
event: 'Coupon Denied',
|
1045
|
+
properties: {
|
1046
|
+
order_id: '123',
|
1047
|
+
cart_id: '1211',
|
1048
|
+
coupon: 'Disc21',
|
1049
|
+
reason: 'Coupon expired',
|
1050
|
+
},
|
1051
|
+
},
|
1052
|
+
},
|
1053
|
+
output: {
|
1054
|
+
event: 'Coupon_Denied',
|
1055
|
+
params: {
|
1056
|
+
cart_id: '1211',
|
1057
|
+
coupon: 'Disc21',
|
1058
|
+
order_id: '123',
|
1059
|
+
reason: 'Coupon expired',
|
1060
|
+
send_to: 'G-123456',
|
1061
|
+
},
|
1062
|
+
},
|
1063
|
+
},
|
1064
|
+
{
|
1065
|
+
description: 'Coupon Removed event',
|
1066
|
+
input: {
|
1067
|
+
message: {
|
1068
|
+
event: 'Coupon Removed',
|
1069
|
+
properties: {
|
1070
|
+
order_id: '1211',
|
1071
|
+
cart_id: '124',
|
1072
|
+
coupon_id: 'Dis123',
|
1073
|
+
coupon_name: 'Disc20',
|
1074
|
+
discount: 20.0,
|
1075
|
+
},
|
1076
|
+
},
|
1077
|
+
},
|
1078
|
+
output: {
|
1079
|
+
event: 'Coupon_Removed',
|
1080
|
+
params: {
|
1081
|
+
cart_id: '124',
|
1082
|
+
coupon_id: 'Dis123',
|
1083
|
+
coupon_name: 'Disc20',
|
1084
|
+
discount: 20,
|
1085
|
+
order_id: '1211',
|
1086
|
+
send_to: 'G-123456',
|
1087
|
+
},
|
1088
|
+
},
|
1089
|
+
},
|
1090
|
+
{
|
1091
|
+
description: 'Product Added to Wishlist event',
|
1092
|
+
input: {
|
1093
|
+
message: {
|
1094
|
+
event: 'Product Added to Wishlist',
|
1095
|
+
properties: {
|
1096
|
+
wishlist_id: '12345',
|
1097
|
+
wishlist_name: 'Games',
|
1098
|
+
product_id: '235564423234',
|
1099
|
+
sku: 'F-17',
|
1100
|
+
category: 'Games',
|
1101
|
+
name: 'Cards',
|
1102
|
+
brand: 'Imagepro',
|
1103
|
+
variant: '123',
|
1104
|
+
price: 8.99,
|
1105
|
+
quantity: 1,
|
1106
|
+
coupon: 'COUPON',
|
1107
|
+
position: 1,
|
1108
|
+
url: 'https://www.site.com/product/path',
|
1109
|
+
image_url: 'https://www.site.com/product/path.jpg',
|
1110
|
+
},
|
1111
|
+
},
|
1112
|
+
},
|
1113
|
+
output: {
|
1114
|
+
event: 'add_to_wishlist',
|
1115
|
+
params: {
|
1116
|
+
currency: 'USD',
|
1117
|
+
image_url: 'https://www.site.com/product/path.jpg',
|
1118
|
+
items: [
|
1119
|
+
{
|
1120
|
+
coupon: 'COUPON',
|
1121
|
+
index: 1,
|
1122
|
+
item_brand: 'Imagepro',
|
1123
|
+
item_category: 'Games',
|
1124
|
+
item_id: '235564423234',
|
1125
|
+
item_name: 'Cards',
|
1126
|
+
item_variant: '123',
|
1127
|
+
price: 8.99,
|
1128
|
+
quantity: 1,
|
1129
|
+
},
|
1130
|
+
],
|
1131
|
+
send_to: 'G-123456',
|
1132
|
+
sku: 'F-17',
|
1133
|
+
url: 'https://www.site.com/product/path',
|
1134
|
+
value: 8.99,
|
1135
|
+
wishlist_id: '12345',
|
1136
|
+
wishlist_name: 'Games',
|
1137
|
+
},
|
1138
|
+
},
|
1139
|
+
},
|
1140
|
+
{
|
1141
|
+
description: 'Product Removed from Wishlist event',
|
1142
|
+
input: {
|
1143
|
+
message: {
|
1144
|
+
event: 'Product Removed from Wishlist',
|
1145
|
+
properties: {
|
1146
|
+
wishlist_id: '12345',
|
1147
|
+
wishlist_name: 'Games',
|
1148
|
+
product_id: '235564423234',
|
1149
|
+
sku: 'F-17',
|
1150
|
+
category: 'Games',
|
1151
|
+
name: 'Cards',
|
1152
|
+
brand: 'Imagepro',
|
1153
|
+
variant: '123',
|
1154
|
+
price: 8.99,
|
1155
|
+
quantity: 1,
|
1156
|
+
coupon: 'COUPON',
|
1157
|
+
position: 1,
|
1158
|
+
url: 'https://www.site.com/product/path',
|
1159
|
+
image_url: 'https://www.site.com/product/path.jpg',
|
1160
|
+
},
|
1161
|
+
},
|
1162
|
+
},
|
1163
|
+
output: {
|
1164
|
+
event: 'Product_Removed_from_Wishlist',
|
1165
|
+
params: {
|
1166
|
+
brand: 'Imagepro',
|
1167
|
+
category: 'Games',
|
1168
|
+
coupon: 'COUPON',
|
1169
|
+
image_url: 'https://www.site.com/product/path.jpg',
|
1170
|
+
name: 'Cards',
|
1171
|
+
position: 1,
|
1172
|
+
product_id: '235564423234',
|
1173
|
+
price: 8.99,
|
1174
|
+
quantity: 1,
|
1175
|
+
send_to: 'G-123456',
|
1176
|
+
sku: 'F-17',
|
1177
|
+
url: 'https://www.site.com/product/path',
|
1178
|
+
variant: '123',
|
1179
|
+
wishlist_id: '12345',
|
1180
|
+
wishlist_name: 'Games',
|
1181
|
+
},
|
1182
|
+
},
|
1183
|
+
},
|
1184
|
+
{
|
1185
|
+
description: 'Wishlist Product Added to Cart event',
|
1186
|
+
input: {
|
1187
|
+
message: {
|
1188
|
+
event: 'Wishlist Product Added to Cart',
|
1189
|
+
properties: {
|
1190
|
+
wishlist_id: '12345',
|
1191
|
+
wishlist_name: 'Games',
|
1192
|
+
product_id: '235564423234',
|
1193
|
+
sku: 'F-17',
|
1194
|
+
category: 'Games',
|
1195
|
+
name: 'Cards',
|
1196
|
+
brand: 'Imagepro',
|
1197
|
+
variant: '123',
|
1198
|
+
price: 8.99,
|
1199
|
+
quantity: 1,
|
1200
|
+
coupon: 'COUPON',
|
1201
|
+
position: 1,
|
1202
|
+
url: 'https://www.site.com/product/path',
|
1203
|
+
image_url: 'https://www.site.com/product/path.jpg',
|
1204
|
+
},
|
1205
|
+
},
|
1206
|
+
},
|
1207
|
+
output: {
|
1208
|
+
event: 'Wishlist_Product_Added_to_Cart',
|
1209
|
+
params: {
|
1210
|
+
brand: 'Imagepro',
|
1211
|
+
category: 'Games',
|
1212
|
+
coupon: 'COUPON',
|
1213
|
+
image_url: 'https://www.site.com/product/path.jpg',
|
1214
|
+
name: 'Cards',
|
1215
|
+
position: 1,
|
1216
|
+
product_id: '235564423234',
|
1217
|
+
price: 8.99,
|
1218
|
+
quantity: 1,
|
1219
|
+
send_to: 'G-123456',
|
1220
|
+
sku: 'F-17',
|
1221
|
+
url: 'https://www.site.com/product/path',
|
1222
|
+
variant: '123',
|
1223
|
+
wishlist_id: '12345',
|
1224
|
+
wishlist_name: 'Games',
|
1225
|
+
},
|
1226
|
+
},
|
1227
|
+
},
|
1228
|
+
{
|
1229
|
+
description: 'Product Shared event',
|
1230
|
+
input: {
|
1231
|
+
message: {
|
1232
|
+
event: 'Product Shared',
|
1233
|
+
properties: {
|
1234
|
+
share_via: 'SMS',
|
1235
|
+
share_message: 'Check this',
|
1236
|
+
recipient: 'name@friendsemail.com',
|
1237
|
+
product_id: '12345872254426',
|
1238
|
+
sku: 'F-13',
|
1239
|
+
category: 'Games',
|
1240
|
+
name: 'Cards',
|
1241
|
+
brand: 'Maples',
|
1242
|
+
variant: '150s',
|
1243
|
+
price: 15.99,
|
1244
|
+
url: 'https://www.myecommercewebsite.com/product/prod',
|
1245
|
+
image_url: 'https://www.myecommercewebsite.com/product/prod.jpg',
|
1246
|
+
},
|
1247
|
+
},
|
1248
|
+
},
|
1249
|
+
output: {
|
1250
|
+
event: 'share',
|
1251
|
+
params: {
|
1252
|
+
brand: 'Maples',
|
1253
|
+
category: 'Games',
|
1254
|
+
image_url: 'https://www.myecommercewebsite.com/product/prod.jpg',
|
1255
|
+
item_id: '12345872254426',
|
1256
|
+
method: 'SMS',
|
1257
|
+
name: 'Cards',
|
1258
|
+
price: 15.99,
|
1259
|
+
recipient: 'name@friendsemail.com',
|
1260
|
+
send_to: 'G-123456',
|
1261
|
+
share_message: 'Check this',
|
1262
|
+
url: 'https://www.myecommercewebsite.com/product/prod',
|
1263
|
+
variant: '150s',
|
1264
|
+
},
|
1265
|
+
},
|
1266
|
+
},
|
1267
|
+
{
|
1268
|
+
description: 'Cart Shared event',
|
1269
|
+
input: {
|
1270
|
+
message: {
|
1271
|
+
event: 'Cart Shared',
|
1272
|
+
properties: {
|
1273
|
+
share_via: 'SMS',
|
1274
|
+
share_message: 'Check this',
|
1275
|
+
recipient: 'friend@friendsemail.com',
|
1276
|
+
cart_id: '1234df2ddss',
|
1277
|
+
products: [{ product_id: '125' }, { product_id: '297' }],
|
1278
|
+
},
|
1279
|
+
},
|
1280
|
+
},
|
1281
|
+
output: {
|
1282
|
+
event: 'share',
|
1283
|
+
params: {
|
1284
|
+
item_id: '1234df2ddss',
|
1285
|
+
method: 'SMS',
|
1286
|
+
recipient: 'friend@friendsemail.com',
|
1287
|
+
send_to: 'G-123456',
|
1288
|
+
share_message: 'Check this',
|
1289
|
+
},
|
1290
|
+
},
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
description: 'Product Reviewed event',
|
1294
|
+
input: {
|
1295
|
+
message: {
|
1296
|
+
event: 'Product Reviewed',
|
1297
|
+
properties: {
|
1298
|
+
product_id: '12345',
|
1299
|
+
review_id: 'review12',
|
1300
|
+
review_body: 'Good product, delivered in excellent condition',
|
1301
|
+
rating: '5',
|
1302
|
+
categories: {},
|
1303
|
+
},
|
1304
|
+
},
|
1305
|
+
},
|
1306
|
+
output: {
|
1307
|
+
event: 'Product_Reviewed',
|
1308
|
+
params: {
|
1309
|
+
product_id: '12345',
|
1310
|
+
rating: '5',
|
1311
|
+
review_body: 'Good product, delivered in excellent condition',
|
1312
|
+
review_id: 'review12',
|
1313
|
+
send_to: 'G-123456',
|
1314
|
+
},
|
1315
|
+
},
|
1316
|
+
},
|
1317
|
+
{
|
1318
|
+
description: 'Order Completed event with products as an object',
|
1319
|
+
input: {
|
1320
|
+
message: {
|
1321
|
+
event: 'Order Completed',
|
1322
|
+
properties: {
|
1323
|
+
checkout_id: '12345',
|
1324
|
+
order_id: '1234',
|
1325
|
+
affiliation: 'Apple Store',
|
1326
|
+
total: 20,
|
1327
|
+
revenue: 15.0,
|
1328
|
+
shipping: 4,
|
1329
|
+
tax: 1,
|
1330
|
+
discount: 1.5,
|
1331
|
+
coupon: 'ImagePro',
|
1332
|
+
currency: 'USD',
|
1333
|
+
users: [],
|
1334
|
+
products: {
|
1335
|
+
product_id: '123',
|
1336
|
+
sku: 'G-32',
|
1337
|
+
name: 'Monopoly',
|
1338
|
+
price: 14,
|
1339
|
+
rating: '',
|
1340
|
+
quantity: 1,
|
1341
|
+
category: 'Games',
|
1342
|
+
url: 'https://www.website.com/product/path',
|
1343
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
1344
|
+
},
|
1345
|
+
},
|
1346
|
+
},
|
1347
|
+
},
|
1348
|
+
output: {
|
1349
|
+
event: 'purchase',
|
1350
|
+
params: {
|
1351
|
+
affiliation: 'Apple Store',
|
1352
|
+
checkout_id: '12345',
|
1353
|
+
coupon: 'ImagePro',
|
1354
|
+
currency: 'USD',
|
1355
|
+
discount: 1.5,
|
1356
|
+
items: [
|
1357
|
+
{
|
1358
|
+
image_url: 'https://www.website.com/product/path.jpg',
|
1359
|
+
item_category: 'Games',
|
1360
|
+
item_id: '123',
|
1361
|
+
item_name: 'Monopoly',
|
1362
|
+
price: 14,
|
1363
|
+
quantity: 1,
|
1364
|
+
sku: 'G-32',
|
1365
|
+
url: 'https://www.website.com/product/path',
|
1366
|
+
},
|
1367
|
+
],
|
1368
|
+
send_to: 'G-123456',
|
1369
|
+
shipping: 4,
|
1370
|
+
tax: 1,
|
1371
|
+
transaction_id: '1234',
|
1372
|
+
value: 20,
|
1373
|
+
},
|
1374
|
+
},
|
1375
|
+
},
|
1376
|
+
];
|
1377
|
+
|
1378
|
+
const pageEvents = [
|
1379
|
+
{
|
1380
|
+
description: 'page_view event with extendPageViewParams toggle disabled',
|
1381
|
+
input: {
|
1382
|
+
message: {
|
1383
|
+
channel: 'web',
|
1384
|
+
name: 'Contact Us',
|
1385
|
+
context: {
|
1386
|
+
app: {
|
1387
|
+
build: '1.0.0',
|
1388
|
+
name: 'RudderLabs JavaScript SDK',
|
1389
|
+
namespace: 'com.rudderlabs.javascript',
|
1390
|
+
version: '1.0.5',
|
1391
|
+
},
|
1392
|
+
ip: '0.0.0.0',
|
1393
|
+
library: {
|
1394
|
+
name: 'RudderLabs JavaScript SDK',
|
1395
|
+
version: '1.0.5',
|
1396
|
+
},
|
1397
|
+
locale: 'en-GB',
|
1398
|
+
screen: {
|
1399
|
+
density: 2,
|
1400
|
+
},
|
1401
|
+
traits: {
|
1402
|
+
email: 'abc@gmail.com',
|
1403
|
+
},
|
1404
|
+
page: {
|
1405
|
+
path: '/destinations/mixpanel',
|
1406
|
+
url: 'https://docs.rudderstack.com/destinations/mixpanel',
|
1407
|
+
category: 'destination',
|
1408
|
+
initial_referrer: 'https://docs.rudderstack.com',
|
1409
|
+
initial_referring_domain: 'docs.rudderstack.com',
|
1410
|
+
},
|
1411
|
+
userAgent:
|
1412
|
+
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36',
|
1413
|
+
},
|
1414
|
+
integrations: {
|
1415
|
+
All: true,
|
1416
|
+
},
|
1417
|
+
properties: {
|
1418
|
+
path: '/destinations/mixpanel',
|
1419
|
+
referrer: '$direct',
|
1420
|
+
title: 'Document',
|
1421
|
+
category: 'destination',
|
1422
|
+
initial_referrer: 'https://docs.rudderstack.com',
|
1423
|
+
initial_referring_domain: 'docs.rudderstack.com',
|
1424
|
+
},
|
1425
|
+
type: 'page',
|
1426
|
+
userId: 'user@10',
|
1427
|
+
},
|
1428
|
+
config: {
|
1429
|
+
measurementId: 'G-123456',
|
1430
|
+
extendPageViewParams: false,
|
1431
|
+
capturePageView: 'rs',
|
1432
|
+
piiPropertiesToIgnore: [{ piiProperty: '' }],
|
1433
|
+
}
|
1434
|
+
},
|
1435
|
+
output: {
|
1436
|
+
event: 'page_view',
|
1437
|
+
params: {
|
1438
|
+
page_location: 'https://docs.rudderstack.com/destinations/mixpanel',
|
1439
|
+
page_referrer: '$direct',
|
1440
|
+
page_title: 'Document',
|
1441
|
+
send_to: 'G-123456',
|
1442
|
+
user_id: 'user@10',
|
1443
|
+
},
|
1444
|
+
},
|
1445
|
+
},
|
1446
|
+
{
|
1447
|
+
description: 'page_view event with extendPageViewParams toggle enabled',
|
1448
|
+
input: {
|
1449
|
+
config: {
|
1450
|
+
measurementId: 'G-123456',
|
1451
|
+
extendPageViewParams: true,
|
1452
|
+
capturePageView: 'rs',
|
1453
|
+
piiPropertiesToIgnore: [{ piiProperty: '' }],
|
1454
|
+
},
|
1455
|
+
message: {
|
1456
|
+
channel: 'web',
|
1457
|
+
name: 'Contact Us',
|
1458
|
+
context: {
|
1459
|
+
app: {
|
1460
|
+
build: '1.0.0',
|
1461
|
+
name: 'RudderLabs JavaScript SDK',
|
1462
|
+
namespace: 'com.rudderlabs.javascript',
|
1463
|
+
version: '1.0.5',
|
1464
|
+
},
|
1465
|
+
ip: '0.0.0.0',
|
1466
|
+
library: {
|
1467
|
+
name: 'RudderLabs JavaScript SDK',
|
1468
|
+
version: '1.0.5',
|
1469
|
+
},
|
1470
|
+
locale: 'en-GB',
|
1471
|
+
screen: {
|
1472
|
+
density: 2,
|
1473
|
+
},
|
1474
|
+
traits: {
|
1475
|
+
email: 'abc@gmail.com',
|
1476
|
+
},
|
1477
|
+
page: {
|
1478
|
+
path: '/destinations/mixpanel',
|
1479
|
+
url: 'https://docs.rudderstack.com/destinations/mixpanel',
|
1480
|
+
category: 'destination',
|
1481
|
+
title: 'Document',
|
1482
|
+
initial_referrer: 'https://docs.rudderstack.com',
|
1483
|
+
initial_referring_domain: 'docs.rudderstack.com',
|
1484
|
+
},
|
1485
|
+
userAgent:
|
1486
|
+
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36',
|
1487
|
+
},
|
1488
|
+
integrations: {
|
1489
|
+
All: true,
|
1490
|
+
},
|
1491
|
+
properties: {
|
1492
|
+
path: '/destinations/mixpanel',
|
1493
|
+
referrer: '$direct',
|
1494
|
+
category: 'destination',
|
1495
|
+
initial_referrer: 'https://docs.rudderstack.com',
|
1496
|
+
initial_referring_domain: 'docs.rudderstack.com',
|
1497
|
+
},
|
1498
|
+
type: 'page',
|
1499
|
+
userId: 'user@10',
|
1500
|
+
},
|
1501
|
+
},
|
1502
|
+
output: {
|
1503
|
+
event: 'page_view',
|
1504
|
+
params: {
|
1505
|
+
category: 'destination',
|
1506
|
+
initial_referrer: 'https://docs.rudderstack.com',
|
1507
|
+
initial_referring_domain: 'docs.rudderstack.com',
|
1508
|
+
page_location: 'https://docs.rudderstack.com/destinations/mixpanel',
|
1509
|
+
path: '/destinations/mixpanel',
|
1510
|
+
referrer: '$direct',
|
1511
|
+
page_referrer: '$direct',
|
1512
|
+
page_title: 'Document',
|
1513
|
+
send_to: 'G-123456',
|
1514
|
+
user_id: 'user@10',
|
1515
|
+
},
|
1516
|
+
},
|
1517
|
+
},
|
1518
|
+
];
|
1519
|
+
|
1520
|
+
const groupEvents = [
|
1521
|
+
{
|
1522
|
+
description: 'Call with traits',
|
1523
|
+
input: {
|
1524
|
+
message: {
|
1525
|
+
userId: 'user@1',
|
1526
|
+
context: {
|
1527
|
+
library: {
|
1528
|
+
name: 'rudder-analytics-php',
|
1529
|
+
version: '2.0.1',
|
1530
|
+
consumer: 'LibCurl',
|
1531
|
+
},
|
1532
|
+
},
|
1533
|
+
traits: {
|
1534
|
+
companySize: 100,
|
1535
|
+
companyName: 'RudderStack',
|
1536
|
+
},
|
1537
|
+
type: 'group',
|
1538
|
+
groupId: 'group@1',
|
1539
|
+
},
|
1540
|
+
},
|
1541
|
+
output: {
|
1542
|
+
event: 'join_group',
|
1543
|
+
params: {
|
1544
|
+
companySize: 100,
|
1545
|
+
group_id: 'group@1',
|
1546
|
+
send_to: 'G-123456',
|
1547
|
+
companyName: 'RudderStack',
|
1548
|
+
user_id: 'user@1',
|
1549
|
+
},
|
1550
|
+
},
|
1551
|
+
},
|
1552
|
+
];
|
1553
|
+
|
1554
|
+
export {
|
1555
|
+
mapping,
|
1556
|
+
pageEvents,
|
1557
|
+
groupEvents,
|
1558
|
+
trackEvents,
|
1559
|
+
identifyEvents,
|
1560
|
+
expectedItemsArray,
|
1561
|
+
inputProductsArray,
|
1562
|
+
outputProductsArray,
|
1563
|
+
};
|