Modify

Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#125 closed Erweiterung (fixed)

Google Conversion Code veraltet

Reported by: billybob Owned by: somebody
Priority: normal Milestone: modified-shop-2.0.0.0
Component: Shop Version: 1.06
Keywords: Cc:
Blocked By: Blocking:

Description

Der Google-ConversionCode hat dieses Format:

<?php
/* -----------------------------------------------------------------------------------------
   $Id: google_conversiontracking.js.php,v 1.1.1.1 2013/02/26 12:15:16 billybob Exp $

   XT-Commerce - community made shopping
   http://www.xt-commerce.com

   Copyright (c) 2003 XT-Commerce

   Released under the GNU General Public License
   ---------------------------------------------------------------------------------------*/
?>

<!-- Google Code for Purchase Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = <?php echo GOOGLE_CONVERSION_ID; ?>;
var google_conversion_language = "<?php echo GOOGLE_LANG; ?>";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "<?php echo GOOGLE_CONVERSION_LABEL; ?>";
var google_conversion_value = 0;
var google_remarketing_only = false;
/* ]]> */
</script>
<?php
//BOF - Dokuman - 2009-08-19 - BUGFIX: #0000223 SSL/NONSSL check for google conversiontracking
if ($request_type=='NONSSL') { 
//EOF - Dokuman - 2009-08-19 - BUGFIX: #0000223 SSL/NONSSL check for google conversiontracking
?>
<script language="JavaScript" src="http://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="http://www.googleadservices.com/pagead/conversion/<?php echo GOOGLE_CONVERSION_ID; ?>/?value=0&amp;label=<?php echo GOOGLE_CONVERSION_LABEL; ?>&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<?php
//BOF - Dokuman - 2009-08-19 - BUGFIX: #0000223 SSL/NONSSL check for google conversiontracking
}else{
?>
<script type="text/javascript" src="https://www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="https://www.googleadservices.com/pagead/conversion/<?php echo GOOGLE_CONVERSION_ID; ?>/?value=0&amp;label=<?php echo GOOGLE_CONVERSION_LABEL; ?>&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<?php
}
//EOF - Dokuman - 2009-08-19 - BUGFIX: #0000223 SSL/NONSSL check for google conversiontracking
?>

Das Google Conversion Label kann in der DB mit folgendem Statement erzeugt und im Admin editiert werden:

insert into configuration values (NULL,'GOOGLE_CONVERSION_LABEL','Purchase',19,2,sysdate(),sysdate(),NULL,NULL);

Attachments (0)

Change History (1)

comment:1 by Torsten Riemer, 12 years ago

Resolution: fixed
Status: newclosed
Summary: Google Voncersion Code veraltetGoogle Conversion Code veraltet

fixed in r5770

Version 0, edited 12 years ago by Torsten Riemer (next)

Modify Ticket

Action
as closed The owner will remain somebody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.