Skip to content

Instantly share code, notes, and snippets.

@campaignupgrade
campaignupgrade / donation_thank_you_ga_fill.html
Last active February 27, 2017 03:54 — forked from salsalabs/donation_thank_you_ga_fill.html
Send donatoin_KEY and amount to Google Analytics (GA) from the thank you page that follows a successful donation in Salsa.
<script>
// Script to retrieve donation_KEY and amount from the URL and send
// them to Google Anaylitics eCommerce.
// See https://salsasupport.zendesk.com/entries/98811317
var m = /donation_KEY=(\d+)/.exec(window.location.search);
var donation_KEY = (m != null) ? donation_KEY = m[1] : 'Unknown';
var m = /amount=(\d+)/.exec(window.location.search);
var amount = parseFloat(window.location.href.split("amount=")[1].split('&'));
(function(i, s, o, g, r, a, m) {
@campaignupgrade
campaignupgrade / README-Sage-9-to-WPEngine.md
Last active April 28, 2018 03:29 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Sage 9 to WPEngine Deployment setup

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites