This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/* UTM Tracking - Acquisition/First Attribution Custom Dimension - GTM | |
* @Ritwikga | |
*/ | |
var cookie_name = 'ds_utm' //Name of Cookie | |
var cookie_duration = 180 //days | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function formSubmit( obj ) { | |
if ( "complete" == obj.status ) { | |
dataLayer.push({'event': 'formSubmit', 'formName':obj.form_name+" ("+obj.form_id+")", 'submissionId': obj.data.cf_id }) | |
} | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
document.addEventListener( 'wpcf7submit', function( event ) { | |
if(!isTrusted) | |
{dataLayer.push({'event':'formSubmit','formId':event.detail.contactFormId})} | |
}, false ); | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? php | |
add_action( 'gform_after_submission', 'access_entry_via_field', 10, 2 ); | |
function access_entry_via_field( $entry, $form ) { | |
echo "<script>var entryField = ". json_encode($entry) .";", | |
"var formData = ". json_encode($form) .";", | |
"var dataLayer = window.dataLayer || [];", | |
"dataLayer.push({'event':'formSubmit','formTitle': formData['title'] + ' ('+formData['id']+')','submissionID':entryField['id'],'formFields':entryField });", | |
"console.log(dataLayer)</script>"; | |
}; | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Typform Tracking in Google Analytics. (Free Account) | |
* @Ritwikga | |
* Digishuffle | |
*/ | |
//// Create Webhook For Every New Form////// | |
var formId = '' // Form ID is available in the URL (typeform.com/form/{formID}/create) | |
var formTag = '' // Enter name for the webhook | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* UTM Tracking - Last Attribution - Facebook | |
* @Ritwikga | |
* Digishuffle | |
*/ | |
var cookie_name = 'fb_utm' //Name of Cookie | |
var cookie_duration = 180 //days | |
if(/utm_source/g.exec(location.search) && /utm_medium/g.exec(location.search)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* UTM Tracking - First Attribution - Facebook | |
* @Ritwikga | |
* Digishuffle | |
*/ | |
var cookie_name = 'fb_utm' //Name of Cookie | |
var cookie_duration = 180 //days | |
if(/utm_source/g.exec(location.search) && /utm_medium/g.exec(location.search)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Facebook Cost Data Upload in Google Analytics | |
* Description: Uploads Facebook (API v2.11) Cost Data in Google Analytics. | |
* @Ritwikga www.Digishuffle.com | |
* | |
* Updated: 23-04-2018 | |
* - Added SideBar | |
* - Bugs Fix | |
* | |
* Updated: 26-01-2018 | |
* - Currency Multiplier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adwords CPA Scanner | |
* Description: Scan Campaigns,AdGroups,Devices,AdNetworks for High CPAs. | |
* Author:RitwikGA | |
* Copyright 2016 v1.1 | |
* Digishuffle.com | |
*/ | |
function main() | |
{ | |
var AccountName=AdWordsApp.currentAccount().getName() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Adwords Keywords Cross Matching | |
* Description: Add Keywords from multiple Campaign(s)/AdGroup(s) as Negatives to other Campaign(s)/AdGroup(s). | |
* Author:RitwikGA | |
* Copyright 2016 | |
* Digishuffle.com | |
*/ | |
function main() | |
{ | |
NewerOlder