Trial->Paid conversion tracking with GTM
* Added trial to paid conversion tracking with GTM * Removed WHMCS roundtrip from Showbuilder * Moved all Analytics code into common/GoogleAnalytics.php * Added a new Thank You page after plan changes to capture conversions * Added a ConversionTracking plugin to facilitate that * Also backported some minor staticBaseDir compatibility changes * Fixed a logic error in creating the baseDir
This commit is contained in:
parent
7b9efb988f
commit
3d03f837d2
11 changed files with 222 additions and 102 deletions
20
airtime_mvc/application/views/scripts/thank-you/index.phtml
Normal file
20
airtime_mvc/application/views/scripts/thank-you/index.phtml
Normal file
|
@ -0,0 +1,20 @@
|
|||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
<?php if ($this->gaEventTrackingJsCode != "") {
|
||||
echo($this->gaEventTrackingJsCode);
|
||||
?>
|
||||
jQuery.post("<?=$this->conversionUrl?>", { "csrf_token" : $("#csrf").attr('value')},
|
||||
function( data ) {});
|
||||
<?php }; //endif ?>
|
||||
});
|
||||
</script>
|
||||
<?php echo $this->form->getElement('csrf') ?>
|
||||
|
||||
<div class="ui-widget ui-widget-content block-shadow clearfix padded-strong thankyou-panel">
|
||||
<center>
|
||||
<div class="logobox" style="margin-left: 32px;"></div>
|
||||
<h2><?php echo _pro("Thank you!")?></h2>
|
||||
<h3><?php echo _pro("Your station has been upgraded successfully.")?></h3>
|
||||
<p><a href="<?=$this->stationUrl?>"><?php echo _pro("Return to Airtime")?></a></p>
|
||||
</center>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue