Skip to content

Instantly share code, notes, and snippets.

View gideonb's full-sized avatar
🌵

Gideon B gideonb

🌵
View GitHub Profile
@gideonb
gideonb / shopify.md
Last active July 31, 2017 13:35 — forked from lambtron/shopify.md
This is an updated version of https://gist.github.com/lambtron/4a6ac9ab322e94f5bfc6 with a fix to properly track purchase events.

1: Add Your Snippet to All Pages

  • Folder: Layouts
  • File: theme.liquid

Add the following snippet to the line above the </head> tag on your main theme.liquid template file. Doing this will load the Segment javascript library (Analytics.js) on every page of your Shopify store.

Make sure you replace YOUR_WRITE_KEY with the write key found in your setup page (click on the wrench icon from inside your Segment project).

@gideonb
gideonb / hack.sh
Created April 4, 2012 18:48 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#