Attaches event listeners to the addthis object and pushes them to GTM's dataLayer.
Necessary because AddThis' built-in GA "integration" doesn't work with Universal Analytics, or GTM. 😒
See also:
/* | |
gruntfile based on https://gist.github.com/billyvg/2a7321623b2d2a87381c | |
[grab the associated `package.json` from here](https://gist.github.com/robert-bosweb/6c0303c11839f063b854) | |
*/ | |
module.exports = function (grunt) { |
{ | |
"//": [ | |
"Packages used for less & autoprefixer preprocessing on Business Catalyst sites", | |
"Replace SITE-NAME-HERE with your site name if you feel like it; it's not used anywhere (yet)" | |
], | |
"name": "SITE-NAME-HERE", | |
"version": "0.0.1", | |
"description": "", | |
"main": "gruntfile.js", | |
"dependencies": {}, |
// ==UserScript== | |
// @name Set Payment Method to 11 | |
// @namespace https://gist.github.com/r-k-b/ | |
// @version 1.0.1 | |
// @description DESCRIPTIONGOESHERE | |
// @author Robert K. Bell | |
// @homepage https://gist.github.com/673e9c53d0b0da4994b48d2d7423ff8d | |
// @downloadURL https://gist.github.com/robert-bosweb/673e9c53d0b0da4994b48d2d7423ff8d/raw/set-BC-paymentmethodtype-to-11.user.js | |
// @match * | |
// @grant none |
Attaches event listeners to the addthis object and pushes them to GTM's dataLayer.
Necessary because AddThis' built-in GA "integration" doesn't work with Universal Analytics, or GTM. 😒
See also:
based on https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_of_a_given_date
M / Power Query doesn't have a native ISO8601 Week Number function, and DAX's
weeknum(x, 21)
doesn't give the correct ISO Week-Year.
/*
based on <https://en.wikipedia.org/wiki/ISO_week_date#Calculating_the_week_number_of_a_given_date>