-
Google Tag Assistant (Essential) https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk
-
Google Analytics Debugger (Recommended) https://chrome.google.com/webstore/detail/google-analytics-debugger/jnkmfdileelhofjcijamephohjechhna
-
WASP (Recommended) https://chrome.google.com/webstore/detail/wasp-web-analytics-soluti/niaoghengfohplclhbjnjheodgkejpih
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getAccounts() { | |
var accountList = TagManager.Accounts.list(); | |
for (var i = 0;i < accountList.account.length;i++) { | |
//if (accountList.account[i].accountId > 123456) { //if you reach a timeout, resume by manually updating this and re-running | |
getContainers(accountList.account[i].accountId,accountList.account[i].name); | |
Utilities.sleep(5000); //GTM only allows 25 queries per 100 seconds, so we have to slow it down | |
//} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
analytics.ready(function(){ | |
function getQueryParam(url, param) { | |
// Expects a raw URL | |
param = param.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
var regexS = "[\\?&]" + param + "=([^&#]*)", | |
regex = new RegExp( regexS ), | |
results = regex.exec(url); | |
if (results === null || (results && typeof(results[1]) !== 'string' && results[1].length)) { | |
return ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var timezoneByCountry = { | |
"Afghanistan": 4.5, | |
"Albania": 1, | |
"Algeria": 1, | |
"Andorra": 1, | |
"Angola": 1, | |
"Antigua and Barbuda": -4, | |
"Argentina": -3, | |
"Armenia": 4, | |
"Australia": 8, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Unblock youtube in Pakistan | |
// @namespace YoutubePakistan | |
// @version 0.1 | |
// @description This script rewrites all youtube links | |
// @match *://*/* | |
// @copyright 2012+, You | |
// ==/UserScript== | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Split Sheet into Multiple sheets based on column value | |
' Adapted from http://en.kioskea.net/faq/7053-excel-macro-to-create-new-workbook-and-copy-data | |
Sub details() | |
Dim thisWB As String | |
Dim newWB As String | |
thisWB = ActiveWorkbook.Name | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Segment Visitors by hostname | |
jQuery(document).ready(function(){ | |
var refKm = document.referrer; | |
var hostKm = document.location.hostname; | |
// checks if visitor is from a different referrer | |
if((hostKm.length > refKm.length && hostKm.indexOf(refKm) === -1) || | |
refKm.indexOf(hostKm) === -1) | |
{ | |
_kmq.push(['record', 'Visited '+ hostKm]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Const sheet1 As String = "magento1" 'primary sheet | |
Public Const sheet2 As String = "ga" 'secondary sheet | |
Public Const keyCol As String = "A" 'column to use as key | |
Public Const sheet1ColEnd As String = "H" 'column to start appending data | |
Sub MergeSheet() | |
Dim id1, id2 As String | |
Dim sheet1Loop, sheet2Loop As Integer | |
sheet1Loop = 2 |