Skip to content

Instantly share code, notes, and snippets.

View gist:90e8a72e9ff58a8f00bc4569c7ca193c
<html>
<head>
<title>Site 1</title>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="crossorigin="anonymous"></script>
<script>
// var bsLeadgenConfirmCampaign = 'Lead Gen – LW Dividend ETFs';
</script>
View gist:0597583fca405beb3f1edc1232763905
<!--BING-->
<script>(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"XXXXXX"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");</script>
<!-- CRITEO -->
<script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
<script type="text/javascript">
window.criteo_q = window.criteo_q || [];
var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
window.criteo_q.push({
View email oversite validation
jQuery( document ).ready(function($) {
//target whatever submits the form.
$('button.lp-pom-button').on('click', function (e) {
//prevent the form from submitting
e.preventDefault();
//get the email address
var emailaddress = $('.form_elem_email').val();
View gist:8c7132816ca59cb3a47803c0ef24b51f
/*
REMOVE EMAIL PII FROM URL
For best use: run this after scripts that need to leverage the email in the query string
and before you start loading marketing pixels.
*/
View gist:083835886d0aa36acdea927678374cc6
var afga_page_props = {
is_logged_in : 'true',
tags : 'tags:autoimmune disorder,tags:gains,tags:Phase 3,tags:placebo,tags:platelets,tags:Rigel Pharmaceuticals (RIGL),tags:trial data,sent:exclusivity,sent:long term,sent:bio tech,',
authors : 'Ray Blanco',
categories : 'Flash Alert,',
post_type : 'post'
}
View gist:993a819a26b5b3a0647966a5d2ff275e
Using this Table definition...
CREATE TABLE test (
id INT NOT NULL,
last_name CHAR(30) NOT NULL,
first_name CHAR(30) NOT NULL,
PRIMARY KEY (id),
INDEX name (first_name, last_name)
);
View gist:bba1a4c12f8e0c3bbf137d1b7823a34a
<a href="linktopromo" target="_blank"><img class="new-image" src="imageurlhere"></a>
@tjtate
tjtate / gist:0e446c059f0beed59511
Last active August 29, 2015 14:17
CSS3 columns
View gist:0e446c059f0beed59511
<ul class="list-column-2">
<li><a href="">How do I unsubscribe?</a></li>
<li><a href="">How do I remove my subscription from automatic renewal?</a></li>
<li><a href="">How can I the find the expiration date of my subscription?</a></li>
<li><a href="">What is my refund policy?</a></li>
<li><a href="">What is my username and password?</a></li>
<li><a href="">What is Jim Rickards' Strategic Intelligence?</a></li>
<li><a href="">Does my subscription come with an automatic renewal option?</a></li>
<li><a href="">When will I be charged for automatic renewal?</a></li>
<li><a href="">How and when will my money be returned to me?</a></li>
View gist:3b59137e6668eaeefd0f
<?php
private function getGoogleData($customerIDDim, $customerNumber, $value) {
$params = array(
'metrics' => $value[1],
'dimensions' => $value[0],
'filters' => $customerIDDim.'=='.$customerNumber,
);
$results = $this->googleAuth->_query($params);
View gist:13b27c7ebedd21faa383
<form action="post.php" type="post">
<input type="text" name="firstname" value="first name" />
<input type="submit" value="submit">
</form>
<!---on the post.php page -->
<?php echo $_GET['firstname']; ?>
<!--OR if you need some logic-->