Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@mailbiz/javascript-tracker

Mailbiz29BSD-3-Clause0.1.13

Web analytics for Mailbiz

tracking, web analytics, events, open source

readme

Mailbiz JavaScript Tracker

npm version License

Add Mailbiz Tracking to your website via a tag solution.

Maintainer quick start

Part of the Mailbiz JavaScript Tracker monorepo.
Build with Node.js (12 LTS or 14 LTS) and Rush.

Setup repository

npm install -g @microsoft/rush 
git clone https://github.com/Mailbiz/Mailbiz.Tracker.Javascript.git
rush update

Select your version

This repository creates two versions of the tracker.

The fully featured tracker.js contains the majority of the plugins included within this repository for a complete tracking experience.

Installation

Add the tag to your website or Tag Management solution:

<script type="text/javascript" async=1>
;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalMBZNamespace=p.GlobalMBZNamespace||[]; p.GlobalMBZNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","{{URL to tracker.js}}","mbtrack"));
</script>

<script>
window.mbtrack('newTracker', 'sp', collector_endpoint, {
  appId: 'my-app',
  eventMethod: 'post',
  contexts: {
    performanceTiming: true,
  },
});
</script>

We advise you host tracker.js yourself, and rename it. However if you'd like use a CDN, you'll find the tracker on jsDelivr, unpkg and cdnjs.

Usage

window.mbtrack('enableLinkClickTracking');

window.mbtrack('trackPageView', {
  title: 'My Title'
});

Licensed and distributed under the BSD 3-Clause License (An OSI Approved License).

Copyright (c) 2022 Mailbiz.

All rights reserved.

changelog

Change Log - @mailbiz/javascript-tracker

This log was last generated on Fri, 13 Dec 2024 12:30:11 GMT and should not be manually modified.

0.1.13

Fri, 13 Dec 2024 12:30:11 GMT

Version update only

0.1.12

Thu, 22 Aug 2024 04:30:16 GMT

Version update only

0.1.11

Tue, 16 Jul 2024 16:59:35 GMT

Version update only

0.1.10

Wed, 04 Oct 2023 15:04:55 GMT

Version update only

0.1.9

Wed, 04 Oct 2023 14:02:37 GMT

Version update only

0.1.8

Tue, 03 Oct 2023 19:12:12 GMT

Version update only

0.1.7

Sun, 21 May 2023 19:47:50 GMT

Version update only

0.1.6

Fri, 24 Feb 2023 13:48:43 GMT

Version update only

0.1.5

Thu, 16 Feb 2023 20:44:15 GMT

Version update only

0.1.4

Mon, 06 Feb 2023 18:40:12 GMT

Version update only

0.1.3

Mon, 06 Feb 2023 18:35:09 GMT

Version update only

0.1.2

Mon, 06 Feb 2023 18:33:02 GMT

Updates

  • Initial Commit
  • MBLABS-3 [Tracker] Implementar envio de eventos no padrão Mailbiz
  • MBLABS-3 [Tracker] Implementar envio de eventos no padrão Mailbiz
  • Implements method trackAccountSync
  • Feat: Create trackOrderComplete and trackCheckoutStep tracking methods
  • Deprecate cart.item.increase and cart.item.decrease and create cart.item.update
  • Convert envelop data property to string
  • Change datetime format to ISO string, in timings envelop node
  • Implement new action to store utm sources as context data [MBLABS-123]
  • Feat: add product price_from param

0.1.1

Mon, 14 Mar 2022 16:58:31 GMT

Initial release