chefcookie 2.8.7 → 2.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,7 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- #### [2.8.6](https://github.com/vielhuber/chefcookie/compare/2.8.6...2.8.6)
7
+ #### [2.8.7](https://github.com/vielhuber/chefcookie/compare/2.8.7...2.8.7)
8
+
9
+ #### [2.8.7](https://github.com/vielhuber/chefcookie/compare/2.8.6...2.8.7)
10
+
11
+ > 15 November 2023
12
+
13
+ - Update readme for new GA4 tag. [`c5ba88e`](https://github.com/vielhuber/chefcookie/commit/c5ba88e79d1b40fcd2e537d1a5866b156d63e219)
14
+ - Update changelog. [`800e2f0`](https://github.com/vielhuber/chefcookie/commit/800e2f08197d7d527866697b9e1ce1de8f09bfff)
8
15
 
9
16
  #### [2.8.6](https://github.com/vielhuber/chefcookie/compare/2.8.5...2.8.6)
10
17
 
package/README.md CHANGED
@@ -526,7 +526,7 @@ window.addEventListener('load', () => {
526
526
  cc.eventTwitter('conversion_id');
527
527
  cc.eventTaboola('custom_event_name');
528
528
  cc.eventMatch2one('id=xxxxxx&seg=xxxxxx');
529
- cc.eventLinkedin('id', 'conversion_id');
529
+ cc.eventLinkedin('conversion_id');
530
530
  cc.eventEtracker('custom_category', 'custom_action');
531
531
  cc.eventEtracker('custom_action');
532
532
  e.preventDefault();
package/_build/script.js CHANGED
@@ -1140,9 +1140,14 @@ var chefcookie = /*#__PURE__*/function () {
1140
1140
  }
1141
1141
  }, {
1142
1142
  key: "eventLinkedin",
1143
- value: function eventLinkedin(id, conversion_id) {
1144
- document.body.insertAdjacentHTML('beforeend', '<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=' + id + '&conversionId=' + conversion_id + '&fmt=gif" />');
1145
- this.logDebug('linkedin ' + id + ' ' + conversion_id);
1143
+ value: function eventLinkedin(conversion_id) {
1144
+ if (typeof window.lintrk == 'undefined') {
1145
+ return;
1146
+ }
1147
+ window.lintrk('track', {
1148
+ conversion_id: conversion_id
1149
+ });
1150
+ this.logDebug('linkedin ' + conversion_id);
1146
1151
  }
1147
1152
  }, {
1148
1153
  key: "eventEtracker",