Skip to content

Instantly share code, notes, and snippets.

View googleanalyticsresoneo's full-sized avatar

RESONEO Google Analytics googleanalyticsresoneo

View GitHub Profile
@coinsandsteeldev
coinsandsteeldev / dialog.html
Last active February 7, 2024 11:23 — forked from arthurattwell/dialog.html
Google Sheets script to allow multi-select in cells with data-validation (adapted from https://www.youtube.com/watch?v=dm4z9l26O0I)
<!DOCTYPE html>
<html>
<head>
<script>
var data
var formId = 'form'
function drawForm() {
if (!data) return
var outputEl = document.getElementById(formId);
<!-- Regexp to recognize fake trafic from JS enabled crawlers
For use in Google Analytics **Filters** on the "ISP Organization" field, corresponding dimension in reporting is "Service Provider"
This lists fits within the 255 characters limit (!doesn't any more, to be optimized) of the filter field if you want to have a Profile/View that will include only that traffic
Most crawlers have Java disabled
You can also disable logging the activity of web monitoring services through a test on user-agent string, see https://gist.github.com/googleanalyticsresoneo/964266
-->
@googleanalyticsresoneo
googleanalyticsresoneo / ga-addthis.html
Last active October 5, 2015 22:27
AddThis and Google Analytics integration Async Syntax
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<!--
AddThis integration with Google Analytics Async - (c) 2013 analytics (chez) resoneo (point) com
https://gist.github.com/googleanalyticsresoneo/2887422
see http://support.addthis.com/customer/portal/articles/1293805-using-addthis-asynchronously
@googleanalyticsresoneo
googleanalyticsresoneo / ga-fields.css
Last active September 30, 2015 15:37
Custom CSS to expand input fields in Google Analytics configuration interface
/*
Expands the width of input fields in the GA v5 Interface
use within the Firefox Stylish extension
https://addons.mozilla.org/en-US/firefox/addon/stylish/?src=external-userstyleshome
or Google Chrome Stylish extension
https://chrome.google.com/webstore/detail/fjnbnpbmkenffdnngjfgmeleoegfcffe
initial code from Olaf Calderon <@blastam.com>
owner Olivier VIT @ resoneo.com
@googleanalyticsresoneo
googleanalyticsresoneo / urchin_notprovided.js
Created November 17, 2011 12:40
not provided keyword upgrade for urchin.js
/*! handling of secure google search keyword being hidden and set as (not provided) for Google Analytics sites using urchin.js , not ga.js
* see also : http://googleblog.blogspot.com/2011/10/making-search-more-secure.html
* Google handles it only in ga.js, we provide it for sites using urchin.js
* author : analytics(at)resoneo(dot)com 2011
* https://gist.github.com/1373049
* usage : include urchin.js ABOVE this code, set your parameters and call urchinTracker BELOW this code */
/*jslint browser: true, sloppy: true, vars: true, white: true, nomen: true, maxerr: 50, indent: 4 */
/* adding some search engines */
@googleanalyticsresoneo
googleanalyticsresoneo / ga-async-seo-france.html
Last active September 25, 2015 18:18
Marquage GA asynchrone complet pour projet SEO marché français
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<!-- a la fin du head -->
<script type="text/javascript">
/*! marquage GA asynchrone de base pour projets SEO en France (c) analytics (chez) resoneo (point) com - 2013
fork it on https://gist.github.com/googleanalyticsresoneo/964266
*/
/* moteurs déjà présents dans ga.js 5.3.8