Question regarding WPML support
Hi there,
I use BeTheme on my site (http://www.fordvancouverdealers.ca) along with the WPML plugin to display translations of my site in multiple languages, so I have the following versions of the site:
I am trying to add different advertising tags for each language, and have reached out to WPML support for help on this. They've given me the following snippet of code, and asked me to request support from BeTheme on where to insert the code. So my question is, where should I insert this code?
Thanks for your help!
Emma
I use BeTheme on my site (http://www.fordvancouverdealers.ca) along with the WPML plugin to display translations of my site in multiple languages, so I have the following versions of the site:
I am trying to add different advertising tags for each language, and have reached out to WPML support for help on this. They've given me the following snippet of code, and asked me to request support from BeTheme on where to insert the code. So my question is, where should I insert this code?
$current_lang = apply_filters( 'wpml_current_language', NULL );
if( $current_lang == 'zh-hans' ){
//advertising code for chinese simplified
}elseif( $current_lang == 'zh-hant' ){
//advertising code for chinese traditional
}elseif( $current_lang == 'en' ){
//advertising code for English
}
Thanks for your help!
Emma
Comments
we are sorry but your question is incomplete because we have no idea with what you want to connect this code. We do not understand what this code supposed to do and with which our item or option should be connected.
English site: http://www.fordvancouverdealers.ca/
Simplified Chinese: http://www.fordvancouverdealers.ca/?lang=zh-hans
Hindi: http://www.fordvancouverdealers.ca/?lang=hi
etc.
I also need to insert some advertising tags in my site, and the advertising tag needs to be different for each language. For example, the English tag is as follows:
<!--
Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: Vancouver English Landing Page - Escape
URL of the webpage where the tag is expected to be placed: fordvancouverdealers.ca/np- escape-2017/
http://www.
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 11/29/2016
-->
<script type="text/javascript">
var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="https://5596639.fls. doubleclick.net/activityi;src= 5596639;type=convid;cat= vanco0;dc_lat=;dc_rdid=;tag_ for_child_directed_treatment=; ord=' ');
+ a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>
</script>
<noscript>
<iframe src="https://5596639.fls. doubleclick.net/activityi;src= 5596639;type=convid;cat= vanco0;dc_lat=;dc_rdid=;tag_ for_child_directed_treatment=; ord=1?"
width="1" height="1" frameborder="0" style="display:none"></iframe>
</noscript>
<!-- End of DoubleClick Floodlight Tag: Please do not remove -->
(Continued in next comment)
While the Simplified Chinese tag is as follows:
Start of DoubleClick Floodlight Tag: Please do not remove
Activity name of this tag: Vancouver Chinese Simplified Landing Page - Escape
URL of the webpage where the tag is expected to be placed: http://www.fordvancouverdealers.ca/np-escape-2017/?lang=zh-hans
This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
Creation Date: 11/29/2016
-->
<script type="text/javascript">
var axel = Math.random() + "";
var a = axel * 10000000000000;
document.write('<iframe src="https://5596639.fls.doubleclick.net/activityi;src=5596639;type=convid;cat=vanco000;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
</script>
<noscript>
<iframe src="https://5596639.fls.doubleclick.net/activityi;src=5596639;type=convid;cat=vanco000;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
</noscript>
<!-- End of DoubleClick Floodlight Tag: Please do not remove -->
Because the advertising code snippets are for different translations of the same page, I am not sure where to put this code.
When I reached out to WPML support, they gave me this code snippet to resolve the issue, and asked me to request support from BeTheme regarding where to insert the code, along with my advertising code above.
Does this make it clear?
Regards,
Emma