<commit_before><!-- CORE GOOGLE ANALYTICS ECOMMERCE CODE

<script>
dataLayer = [{
    'transactionId':'DYNAMICALLY GENERATED RECEIPT ID',
    'transactionTotal': DYNAMICALLY GENERATED TRANSACTION TOTAL ,
    'transactionProducts': [{
        'sku':'DYNAMICALLY GENERATED ITEM SKU',
        'name':'DYNAMICALLY GENERATED ITEM NAME',
        'price':DYNAMICALLY GENERATED ITEM TOTAL,
        'quantity': DYNAMICALLY GENERATED QUANTITY
    }]
}];

//THE TRANSACTION PRODUCTS ARRAY SHOULD BE DUPLICATED IN THE CASE OF MULTIPLE PRODUCTS IN THE SAME ORDER

</script>

-->

---------------------------------------------------------

<!-- PHP EXAMPLE FOR FIRST UPSELL PAGE -->


<!-- FIRST UPSELL PAGE SCRIPT -->

<?php 
	//LOAD COOKIE SCRIPT. THIS FILE CAN BE FOUND IN THE RESPOSITORY, AND MUST BE INCLUDED ON YOUR DOMAIN SERVER.
	include 'checkreturning.php';

	//FETCH SALES DATA FROM URL
	$receipt=$_GET['cbreceipt'];
	$item=$_GET['item'];
	$affiliate=$_GET['cbaffi'];
	
	    if ($item==''){
        $amount='null';
        $code='null';
    } else if ($item==1){
        $amount=000;
        $code='NAME';
    }
 
	//IMPLEMENT ECOMMERCE CODE
	if($newvisitor==1) 
	{
		echo "<script>
	dataLayer = [{
		'transactionId':'$receipt',
		'transactionAffiliation':'$affiliate',
		'transactionTotal':$amount ,
		'transactionProducts': [{
			'sku':'$item',
			'name':'$code',
			'price':$amount,
			'quantity': 1
		}]
	}];

	</script>";
	
	
	}
?>

<!-- END FIRST UPSELL PAGE SCRIPT --><commit_msg>ecom simplified more<commit_after><!-- FIRST UPSELL PAGE SCRIPT -->

<?php 
	//LOAD COOKIE SCRIPT. THIS FILE CAN BE FOUND IN THE RESPOSITORY, AND MUST BE INCLUDED ON YOUR DOMAIN SERVER.
	include 'checkreturning.php';

	//FETCH SALES DATA FROM URL
	$receipt=$_GET['cbreceipt'];
	$item=$_GET['item'];
	$affiliate=$_GET['cbaffi'];
	
	    if ($item==''){
        $amount='null';
        $code='null';
    } else if ($item==1){
        $amount=000;
        $code='NAME';
    }
 
	//IMPLEMENT ECOMMERCE CODE
	if($newvisitor==1) 
	{
		echo "<script>
	dataLayer = [{
		'transactionId':'$receipt',
		'transactionAffiliation':'$affiliate',
		'transactionTotal':$amount ,
		'transactionProducts': [{
			'sku':'$item',
			'name':'$code',
			'price':$amount,
			'quantity': 1
		}]
	}];

	</script>";
	
	
	}
?>

<!-- END FIRST UPSELL PAGE SCRIPT -->
{'fraction_non_alphanumeric': 0.19059939629150496, 'fraction_numerical': 0.00517464424320828, 'mean_word_length': 2.9931153184165233, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5065251', 'n_tokens_mistral': 937, 'n_tokens_neox': 799, 'n_words': 191}