Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author oturia

    (@oturia)

    iachia,
    I haven’t worked with WPML in the past, but from what I can tell, it’s dynamically creating the translated pages. If that’s true, then there’s probably not a separate version of you thank you page in Italian and English.

    Since it’s storing your AdWords choice by the post ID and not the title, then I would assume that the dynamically generated version of your translated page would have the same AdWords conversion code assigned to it.

    Can you add the conversion code to your main receipt page (I’m assuming Esito Richiesta), then let me know so we can test it out?

    Also, if you have the ability to edit your theme, if you can replace <body> with <body <?php body_class($class); ?>> in your theme’s header.php file, I could test my theory about the page’s IDs.

    Thanks!

    Thread Starter iachia

    (@iachia)

    Thank you otiria for your time and sorry for my late reply but I didn’t get the email notification for some reason…
    I added the Adwords code to the thank you page in Italian (esito richiesta as you noted) and it’s working ok.
    I have no idea about how WPML works but I know I have a thank you page in English (called receipt) that is listed in my page menu.
    I’m not very comfortable in editing themes…
    Hope you can still take a look when you have a second.
    Thanks again

    Plugin Author oturia

    (@oturia)

    OK, I see that the code is showing up on the original receipt page, but not the English version.

    The WPML plugin is a paid plugin and since I can’t really play around with a copy, I need to see what the page ID is on the English version of the page since the page ID is how we trigger the code to be displayed.

    Could you go to Appearance >> Editor, then click on header.php, then replace <body> with <?php body_class($class); ?>>, then let me know once that’s done? This will let me see what ID the page is being given.

    Thanks!

    Thread Starter iachia

    (@iachia)

    Hi, thanks again for your reply.
    I looked at the header file and it’s already showing this code:
    <body <?php if (isset($class)){ body_class($class); } ?>>
    If I try to chafe it with yours the site goes blank… don’t ask me why 🙂
    can you still see the page id that way?

    Plugin Author oturia

    (@oturia)

    I’ve tried playing around with the plugin myself, and it just doesn’t seem to be generating a page ID for the plugin to insert the code on. I’m not sure how to work around that as our plugin explicitly posts the conversion code on the page that matches the ID of the one selected in the conversion code setup settings.

    I’m sorry we could be of more assistance on this one!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Adwords conversion code and WPML’ is closed to new replies.