Skip to content

Instantly share code, notes, and snippets.

View ablatner88's full-sized avatar

Anthony Blatner ablatner88

View GitHub Profile
<!-- Wufoo UTM tracking: Add jQuery, getUrlParameter, and getWufooUTMsString -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
// Parse the URL to get the required field values
var getUrlParameter = function getUrlParameter(sParam) {
var sPageURL = window.location.search.substring(1),
sURLVariables = sPageURL.split('&'),
sParameterName,
i;
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script>
fbq('track', 'Lead');
</script>
<script>
window.addEventListener( 'message', function(event) {
if ( event.data.meetingBookSucceeded ) {
window.dataLayer.push({
'event': 'hubspot-meeting-booked'
});
}
});
</script>
@ablatner88
ablatner88 / ClickFunnels - Retrieve Cookie, Log Purchase with Value
Last active September 11, 2023 19:39
ClickFunnels - Retrieve Cookie, Log Purchase with Value
@ablatner88
ablatner88 / ClickFunnels - Calculate Order Value, Save Cookie
Last active September 11, 2023 19:40
ClickFunnels - Calculate Order Value, Save Cookie
@ablatner88
ablatner88 / FB Pixel - ViewContent with Parameters
Last active September 11, 2023 19:41
FB Pixel - ViewContent with Parameters
<script>
fbq('track', 'ViewContent', {
value: 1999.00,
currency: 'USD',
content_ids: 'silver_141',
content_type: 'product',
});
</script>
@ablatner88
ablatner88 / LoginViewController.swift
Created August 12, 2017 13:20
Login Screen for E-Commerce Mobile App
//
// LoginViewController.swift
// OrientDBTutorial-Swift
//
// Created by Anthony Blatner on 8/1/17.
// Copyright © 2017 Anthony Blatner. All rights reserved.
//
import Foundation
import Alamofire
import UIKit
@ablatner88
ablatner88 / Globals.swift
Created August 12, 2017 13:18
E-Commerce App Global Variables
//
// Globals.swift
// OrientDBTutorial-Swift
//
// Created by Anthony Blatner on 8/5/17.
// Copyright © 2017 Anthony Blatner. All rights reserved.
//
import Foundation
var username: String?
@ablatner88
ablatner88 / OrientDB-CreateOrder.js
Last active September 11, 2023 19:41
OrientDB Server-side function for creating a new order, populating the information and edge relationships. For use with the Intro to HTTP REST API tutorial.
var graph = orient.getGraph();
// Check valid parameters
if( ProductID == "" || BuyerID == "" ){
response.send(404, "Product or Buyer Missing", "text/plain", "Error: Missing ProductID or BuyerID Parameter" );
}
// Query for objects
var product = graph.getVertex(ProductID);
var buyer = graph.getVertex(BuyerID);