Tag Archive: javascript

EKM Powershop – Adwords Conversion Value – Add Order Value to Your Adwords Code

When logged into your account on the successful checkout page (Settings > Checkout > Order Complete Page)
QuickLink if you’re already logged in is: http://youraccount.ekmpowershop2.com/ekmps/shops/settings_shop_checkoutfields_6.asp

Paste the google adwords javascript with the ekm tag [ekm:totalcost_number_only] where conversion value needs to go (in both the javascript and noscript bits of the code.)

Here’s  code example (with made up conversion id and label data):
this data goes at the bottom of the successful checkout page source

 <!– Google Code for Sale Conversion Page –>

<script type=”text/javascript”>

/* <![CDATA[ */

var google_conversion_id = 1234567890;

var google_conversion_language = “en”;

var google_conversion_format = “3”;

var google_conversion_color = “ffffff”;

var google_conversion_label = “ab-CDEfghIJKlMn1_AB”;

var google_conversion_value = [ekm:totalcost_number_only];

/* ]]> */


<script type=”text/javascript” src=”http://www.googleadservices.com/pagead/conversion.js”>



<div style=”display:inline;”>

<img height=”1″ width=”1″ style=”border-style:none;” alt=”” src=”http://www.googleadservices.com/pagead/conversion/1234567890/?value= [ekm:totalcost_number_only] &label= ab-CDEfghIJKlMn1_AB &guid=ON&script=0″/>




  1. If you have more than one payment method e.g. telephone, paypal etc you will need to add this code to the source of each payment method’s “checkout complete” page.
  2. The ekm powershop database/server code escapes any (“) with a slash e.g. (\”)
    it double escapes this if the user changes something then updates the page source again
    replacing every double quote (“) in the google code with single (‘) will prevent this happening.
  3. Make sure you do a dummy run throught the checkout process and view page source on the order complete page to verify the code looks as it should.


If you have more than one payment method e.g. telephone, paypal etc you will need to add this code to the source of each payment method’s “checkout complete” page.

How to Disable Javascript in your Browser

You can easily disable javascript in any browser completely or you can disable javascript for a specific site/domain in the Chrome Browser.

Note: Make sure you remember to re-enable javascript when you’re done!

Internet Explorer:
1. Click the little gear (top right)
2. Click “Internet Options”
3. Choose the “Security” Tab
4. Click “Custome Level…” Button (near the bottom)
5. Scroll down to the “Scripting Section”
6. Locate the Active scripting subheading and select the “Disable” radio button.
If you would rather be prompted each time a website attempts to launch any javascript code, select the “Prompt” radio button instead.

1. Click the spanner icon (“Customise and Control Google Chrome”)
2. Click “Options”
3. Click “Under the Bonnet”
4. Click the “Content Settings…” button at the top (next to where it says “Privacy”)
5. In the “Javascript” section make sure that “Allow all sites to run JavaScript (recommended)” is selected
6. then click the “Manage Exceptions…” button
7. Select “Block” from the drop down box
8. Enter the hostname in the text box: http://en.wikipedia.org
9. Hit Enter

(to remove this javascript block for after the “blackout” just goto the same “Manage exceptions” page hover your mouse over the wikipedia entry you added and click “X”)

1. On your keyboard hold down “Alt+T” together then tap “O”
2. Click the “Content” icon
3. Untick “Enable Javascript”
This will disable javascript on ALL sites you visit until you tick “Enable Javascript” box again

1. Open Safari
2. On your keyboard hold down the “Ctrl” key and tap the comma [,] key
3. Select the “Security” icon
4. untick “Enable JavaScript”