3 Replies Latest reply on Oct 18, 2017 8:55 AM by SarahEOwen

    "$ is not defined" Error in Custom Event Code

    SarahEOwen Level 4

      I am getting an error in my Custom Event Code saying that "$ is not defined"   Below are steps to put in a break point to see the jquery error as well as steps on where to find the Custom Event Code within my web property in Launch.


      Put in a break point to see the jquery error:

      1) go to test1.hmkb2c.com

      2) open Developers' Tools and go to the Sources tab

      3) on the left side of the Sources tab expand assets.adobedtm.com and double click on the file that starts launch-EN

      4) the file will open on the right. click on the pretty print icon at the bottom left of this area

      5) search for olapic

      6) put a break point on the "$(document.ready(function() {" line of code, which is a few lines above the first instance of olapic (see yellow highlighting in the screen shot below)


      7) refresh the web page

      8) the break point will be hit - you may need to click the step-over arrow three times to get to the error (see screen shot below)



      Here is the location of the jquery that is erroring out:

      1) go to my Launch instance

      2) click on the test1 Web Property

      3) click on the Rules tab and click on "Page Bottom - All Pages - Analytics :: Send s.t() beacon"

      4) in the "Events" section of the Rule, click on the "UGC Content Loaded" portion (see screen shot below)


      5) The jquery in this custom event code is what is erroring out on the website.



      Thanks -