Skip to content

Instantly share code, notes, and snippets.

@7footmoustache
7footmoustache / script.ssml
Created June 23, 2017 06:11
Ventriloquist script
This is a test
This is another line
@7footmoustache
7footmoustache / trackAdwordConversion.js
Created March 13, 2013 15:23
This is how we are tracking Google AdWord conversions based on suggestions from Stack Overflow. Thought it would help some of the peeps that wanted to not leave a trace. logger is a safe wrapper around window.console if it exists, you can ignore those lines.
// This is unfortunately the best way to send an adwords request.
// It uses global scope and document.write so we perform a slight
// operation and then reverse our work
track.trackAdWordConversion = function(conversion) {
logger.logFunction('track:trackAdWordConversion', arguments);
// Keep things around so we can reset later
var resetWindow = {},
resetDocumentWrite = document.write;
// Make it so document.write doesn't open a new HTML page, but rather
// appends the existing HTML