Skip to content

Instantly share code, notes, and snippets.

Simon breton simonbreton

  • Remote
Block or report user

Report or block simonbreton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Digital_Brain_Resorts_World
//Tracking plan
// Google Tag Manager
//Paste this code as high in the <head> of the page as possible:
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
View Datalayer - Purchases
// Send transaction data with a pageview if available
// when the page loads. Otherwise, use an event when the transaction
// data becomes available.
window.dataLayer = window.dataLayer || [];
'event': 'purchases',
'ecommerce': {
'purchase': {
'actionField': {
View gist:ddde17d0e13f83c771bdc2d1cc93c964
NULL AS extra,
0 AS AnnualBusExpenses,
0 AS MonthExtraBusExpenses,
0 AS AnnualExtraBusExpenses,
0 AS MonthBusExpenses
Name,DATE_FORMAT(Date, "%Y-%m-%d") as Date,COALESCE(SupplierExpenses,0) as SupplierExpenses,
COALESCE(MiscEventExpenses,0) as MiscEventExpenses ,
View Last 6 months spreadsheet formula (blog article)
=arrayformula(if(A2:A<>””,if(A2:A>=EDATE(today(),-6),”last 6 months”,”older than last 6 months”),””))
You can’t perform that action at this time.