Skip to content

Instantly share code, notes, and snippets.

@bcj19
bcj19 / tt_customRedirect
Created May 30, 2012 20:20
Using Test&Target HTML offers instead of Redirect offers
<!--
html offer: builds referrer cookie and forces redirect via javascript
-->
<script type="text/javascript">
//destination url
var recipeURL="testPage.html";
/*
setCookie() - //logic to build cookie b/c other custom js files may not load/execute before the redirect is required
@bcj19
bcj19 / ga_formAnalysis.js
Created April 13, 2012 12:01
Dynamic form analysis plug-in for use with Google Analytics implementations.
if("undefined"==typeof($tG)){$tG={};}
/*
$tG.formAnalysis()
- pv_formId = "id" property for html form element being monitored
- pv_event = status of form event: abandon, success, error
*/
$tG.formAnalysis = function(pv_formId,pv_event) {
var subDetail="";
var formId=pv_formId;
pv_event=pv_event.toLowerCase();