Woopra Forums » Plugins and Add-ons

CakePHP Integration Installation

(5 posts)
  • Started 9 months ago by nickelbids
  • Latest reply from nickelbids
  • This topic is resolved
  • This took me a while, and it is probably not a widely used CMS or framework but here it is anyways.
    Apply the code to your footer file
    Mine is:

    /app/views/themed/(themename)/elements/footer.ctp (if themed)
    /app/views/elements/footer.ctp (if standard)

    Add this code before the </div> tags

    <!-- Woopra Code Start -->
    <script type="text/javascript">
    var woopra_array = new Array();
    woopra_array['name'] = '<?php echo $session->read('Auth.User.username'); ?>';
    </script>
    <script type="text/javascript">
    var _wh = ((document.location.protocol=='https:') ? "https://sec1.woopra.com" : "http://static.woopra.com");
    document.write(unescape("%3Cscript src='" + _wh + "/js/woopra.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <!-- Woopra Code End -->

    Where it reads "Auth.User.username" that should be your variable

    Yours could be "username" or "user" or something similar.

    Posted 9 months ago #
  • You are a star. Thanks for the help. I've added it to the Installation Guide.

    Posted 9 months ago #
  • Lorelle,

    Is woopra having a server issue regarding the tagging of visitors?

    Posted 8 months ago #
  • Is anyone else able to tag their visitors automatically? My scripts were installed normally but my visitors tagged names dont show up.

    Posted 8 months ago #
  • I even changed the array settings to accommodate the new JS array. woopra_visitor but still nothing is getting tagged in woopra.

    Posted 8 months ago #

RSS feed for this topic

Reply

You must log in to post.