Welcome Guest. Sign in or Signup

4 Answers

Custom targeting using Description meta tag

Asked by: ellenthompson 424 views User Questions

Right now, I am using custom targeting – I have successfully integrated the info from the title tag and the url.

I was wondering if anyone has integrated the data from the description meta tag? If I could send this data, it would solve a lot of problems for me.

Thanks,

Ellen

4 Answers



  1. renegade_mike on Dec 06, 2007

    You could use JavaScript to read the meta tag values and insert them into the AdvertPRO tags.

    I found an article showing code examples for you: http://www.irt.org/script/1607.htm

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  2. ellenthompson on Dec 06, 2007

    I tried to insert the JavaScript, and reference it as follows and it doesn’t do anything. When I

    &custom1=’+escape(document.getElementsByName)&

    Any ideas?

    thanks,

    Ellen

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  3. renegade_mike on Dec 06, 2007

    Try the following, which will output the meta keywords:

    <br />&custom1='+escape(document.getElementsByName('Keywords')[0].content)+'<br />

    0 Votes Thumb up 0 Votes Thumb down 0 Votes



  4. ellenthompson on Dec 06, 2007

    That worked great. For those of you who are trying to implement this, you can also substitute description for keyword and it will pull from the description meta tag.

    However, beware that it is CASE SENSITIVE i.e. Keywords is not the same as keywords! It spent a few minutes figuring that out.

    Thanks a million!

    Ellen

    0 Votes Thumb up 0 Votes Thumb down 0 Votes