Skip to content

Instantly share code, notes, and snippets.

View loop-through-gsheets
var ss = SpreadsheetApp.getActiveSpreadsheet()
function getSheets() {
var column_headers = []
var sheets = ss.getSheets();
for (i = 0; i < sheets.length; i++){
var sheet = sheets[i]
var name = sheet.getName()
if (name != 'setup'&& name != 'guide'){
var firstRow = 1;
View user-scoring.tag.gtm.html
<script>
var yourDomain = "insertyourdomainnamehere.com";
//scoring
var curRes = {{residential value}} || 0;
var curCom = {{commercial value}} || 0;
//set cookie expiration
//set now to current date
var now = new Date();
//set time using today's date from var now, get the full year associated with it ie: 2017
View angulartics example datalayer pushes.js
/**
* @license Angulartics
* (c) 2013 Luis Farzati http://luisfarzati.github.io/angulartics
* Google Tag Manager Plugin Contributed by http://github.com/danrowe49
* License: MIT
*/
(function(angular){
'use strict';
You can’t perform that action at this time.