Using Javascript in Google Web Optimizer Page Sections
Posted
by Chris S
on Stack Overflow
See other posts from Stack Overflow
or by Chris S
Published on 2010-05-17T20:40:12Z
Indexed on
2010/05/18
23:30 UTC
Read the original article
Hit count: 327
Is it possible to use Javascript in the content of a page section variation? I want different variations to make different Javascript function calls, so I have variation content like:
Variation 1
<script type="text/javascript">my_func('abc');</script>
Variation 2
<script type="text/javascript">my_func('def');</script>
However, when I preview my page, I can't verify that my_func(content){ alert(content); } is actually being run. Does GWO not support JS content, or am I missing something?
© Stack Overflow or respective owner