Skip to content

Instantly share code, notes, and snippets.

@garcon
garcon / cs-cz.txt
Created October 9, 2009 20:21
Czech translation for Perch
{
"lang":"cs-cz",
"Settings":"Nastavení",
"Perch":"Perch",
"My Account":"Můj účet",
"Log out":"Odhlásit",
"Content":"Obsah",
"Users":"Uživatelé",
"Help":"Nápověda",
"Colours can be set to any colour value acceptable in CSS, such as <code>#FFFFFF<\/code> or <code>white<\/code>.":"Barvy lze nastavit na jakoukli hodnotu přípustnou v CSS, například <code>#FFFFFF<\/code> nebo <code>white<\/code>.",
@garcon
garcon / analytics-transaction-ihracky-help.txt
Created November 3, 2009 17:42
Měřicí kód Analytics s transakcemi pro iHracky.sk
Toto je napoveda k souboru "analytics-transaction-ihrackysk.html".
Pro soubor plati totez, co pro gist: bffbc20a7b69485cdb1d (viz http://gist.github.com/bffbc20a7b69485cdb1d), s tim rozdilem, ze od radku #21 do radku #40 bylo pridano sledovani transkaci.
Pro obsah metody "_addTrans" plati, ze polozky "order ID" (radek #23) a "total" (radek #25) jsou povinne, ostatni mohou obsahovat prazdne retezce. Hodnotu promennych je nutne v okamziku nacteni zmenit na skutecne hodnoty.
order ID (#23): retezec s identifikaci objednavky -- *povinne
store name (#24): pokud vyuzivate affiliate (provizni prodej) nebo reklamni kampane, muze retezec obsahovat napriklad ID provizniho prodejce nebo nazev kamapane, reklamniho formatu nebo site (napriklad: "cpc:adwords:vianoce09")
total (#25): celkova suma za zbozi bez DPH a dopravy (pozor: desetinna tecka) -- *povinne
tax (#26): celkova vyse dane (pozor: desetinna tecka)
@garcon
garcon / ga-search-engines.js
Created November 16, 2009 19:30
Analytics – czech search-engines
/**
* Google Analytics tracking code by Michal Janik
* Version 09-07-15
*
* more ifnormation: http://www.michaljanik.cz/gatc
*/
pageTracker._addOrganic("1.cz","q");
pageTracker._addOrganic("1188.cz","q");
pageTracker._addOrganic("about","terms");
@garcon
garcon / SEOPositionPlus.js
Created November 16, 2009 20:22 — forked from andyed/SEOPositionPlus.js
Analytics – pozice vyhledavačů podle andyed
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
@garcon
garcon / ga-h1-setup.js
Created November 16, 2009 21:05
Analytics: H1 – měřicí kód GA podle H1
/**
* Customized Google Analytics tracking code by H1.cz
* Version 4.03
*
* Copyright (c) 2008-2009 H1.cz s.r.o.
* For further information see http://www.h1.cz/ga
*/
if(typeof(_gat) == 'undefined') {
document.write(unescape('%3Cscript src="http'+(document.location.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com/ga.js" type="text/javascript"%3E%3C/script%3E'))
@garcon
garcon / PrettyDate.js
Created November 20, 2009 20:32
PrettyDate.js – dates in a "pretty" way
/*
* JavaScript Pretty Date
* Copyright (c) 2008 John Resig (jquery.com)
* Licensed under the MIT license.
* http://ejohn.org/files/pretty.js
*/
// Takes an ISO time and returns a string representing how
// long ago the date represents.
function prettyDate(time){
@garcon
garcon / Sparkline.js
Created November 20, 2009 20:40
Sparkline.js
/**
* Javascript Sparklines Library
* Written By John Resig
* http://ejohn.org/projects/jspark/
*
* This work is tri-licensed under the MPL, GPL, and LGPL:
* http://www.mozilla.org/MPL/
*
* To use, place your data points within your HTML, like so:
* <span class="sparkline">10,8,20,5...</span>
{
km: "medium", // cpc
ks: "source", // adwords
kc: "campaign", // vanoce2009
kk: "keyword", // {keyword}
kv: "ad variation", // {creativeid}
kn: "no override" // campaign group id
}
@garcon
garcon / ga.js
Created November 30, 2009 18:22
/** Original Google Analytics Tracking Code
* prettyfied by http://www.prettyprinter.de/
* 2009-11-30
*/
(function(){
var aa = "_gat", s = "_gaq", v = true, w = false, x = undefined, ba = "4.5.9", z = "length", A = "cookie", C = "location", D = "&", E = "=", F = "__utma=", H = "__utmb=", I = "__utmc=", ca = "__utmk=", K = "__utmv=", L = "__utmz=", M = "__utmx=", da = "GASO=";
var N = function(f) {
return x == f || "-" == f || "" == f
},
<!-- Customized Google Analytics tracking code by H1.cz - ver. 4.03 rev. 20091130 -->
<script type="text/javascript" src="/ga-set.js"></script>
<script type="text/javascript">
// <![CDATA[
var pageTracker = _ga._getTracker('UA-xxxxxx-xx');
pageTracker._trackPageview();
// ]]>
</script>