Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › Placing Adwords code on payment redirect page
Tagged: adwords code insertion
- This topic has 5 replies, 2 voices, and was last updated 14 years, 9 months ago by amin007.
-
AuthorPosts
-
January 14, 2010 at 3:50 am #659newreptilecagesMember
Hello-
I’d like to be able to track how many people are proceeding to checkout but not completing payment. Can you tell me where to insert my Adwords code on the checkout redirection page (http://newreptilecages.com/wp-content/plugins/wp-cart-for-digital-products/eStore_payment_submission.php)? i’m assuming i can edit the plugin from the wordpress dashboard and simply drop the code in somewhere.
Thank you for your prompt response to my last post.
Kindest regards, drew
January 14, 2010 at 10:21 pm #17239amin007ParticipantYes you can do this easily by placing your Adwords code in the “eStore_payment_submission.php” file. You can place the code just after the “include” statements on that file. Let me know if you need more help with this.
January 15, 2010 at 3:27 am #17240newreptilecagesMemberThank you. Yes, more guidance is needed to identify the “include” statements. I keep getting parse errors on whatever line I drop the code in.
January 15, 2010 at 4:55 am #17241amin007Participantplease post the code you are trying to put… I have a feeling there is something wrong with the code… remember you need to drop PHP code and not straight HTML as it’s a PHP file.
For HTML or Javascript you will need to rap it in an “echo” statement so PHP can understand that code.
January 15, 2010 at 7:32 pm #17242newreptilecagesMemberSounds like what you are describing is precisely my problem. How do I wrap the code in an “echo” statement?
<!– Google Code for Paypal Redirect Conversion Page –>
<script type=”text/javascript”>
<!–
var google_conversion_id = 1028449772;
var google_conversion_language = “en”;
var google_conversion_format = “2”;
var google_conversion_color = “ffffff”;
var google_conversion_label = “j1NyCOTJsAEQ7Muz6gM”;
var google_conversion_value = 0;
if (60) {
google_conversion_value = 60;
}
//–>
</script>
<script type=”text/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/1028449772/?value=60&label=j1NyCOTJsAEQ7Muz6gM&guid=ON&script=0″/>
</div>
</noscript>
January 16, 2010 at 12:21 am #17243amin007ParticipantVery simple. Say for example you want to output “Hello World” to the screen then all you have to do is put the following:
echo ‘Hello World’;
In your case you want to put some HTML and Javascript code so you just put that code in an echo statement like the following:
echo ‘
<script type=”text/javascript”>
<!–
var google_conversion_id = 1028449772;
var google_conversion_language = “en”;
var google_conversion_format = “2”;
var google_conversion_color = “ffffff”;
var google_conversion_label = “j1NyCOTJsAEQ7Muz6gM”;
var google_conversion_value = 0;
if (60) {
google_conversion_value = 60;
}
//–>
</script>
<script type=”text/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/1028449772/?value=60&label=j1NyCOTJsAEQ7Muz6gM&guid=ON&script=0″/>
</div>
</noscript>
‘;
Let me know how you go.
-
AuthorPosts
- You must be logged in to reply to this topic.