4 Replies Latest reply on Jun 22, 2018 7:17 AM by stewarts16448458

    Old appMeasurement plugins

    Adobe assassin Level 1

      Hi All,

       

      we are in the process of implementing Launch, we have quite a few plugins that we used to use in Appmeasurement and would would still like to use, can anyone tell me

       

      1.  Where to place the plugin code?

      2.  How do I reference the plugins so they populate the relevant s.props?

       

      Any advice help will be much appreciated.

       

      Best regards.

        • 1. Re: Old appMeasurement plugins
          stewarts16448458 Level 3

          Under Extensions in Launch, you'll need to install and configure the Adobe Analytics extension (I assume that you've gotten this far).

           

          Within the extension configuration, you'll find a section named "Configure Tracker Using Custom Code".  This is the place where you will add your plug-in functions and set up your s.doPlugins function.

          Screen Shot 2018-06-13 at 8.53.08 AM.png

           

          Here is some example implementation code :

          Screen Shot 2018-06-13 at 9.05.38 AM.png

          In the code above, there are a few things to note:

          1) Timing - This code is executed just after the Adobe Analytics library is loaded which is just after the Launch library inits.  In other words, this will run very early in the scheme of things.

           

          2) The first part  (blocked by comments Start ... End) of this code simply defines the plugin functions on the "s" object. This makes them available for use later.

           

          3) line 24 - s.usePlugins=true.  This is a flag for Adobe Analytics that tells it to execute the doPlugins function just before sending beacons across the wire ( as part of s.t, s.tl, activityMap, and link tracking).

           

          4) Lines 25-27 s.doPlugins = ...   This is the function that will be run.  This is where you set you props, evars, events and do anything else you want to accomplish on every beacon that you send.

           

          5) This example shows the structure of things.  You can add more plug-ins and more logic to your doPlugins function.

           

          6) This code would also be a good place for other AA customizations like loading the media module for video tracking.

           

           

          Links to the documentation are here:

          Implementation Plug-ins

          s.usePlugins

          s.doPlugins

          2 people found this helpful
          • 2. Re: Old appMeasurement plugins
            Adobe assassin Level 1

            Hi Stewart,

             

            Thank you for the info.  You are a life saver!!!.

             

            Kind regards

             

            Chris.

            • 3. Re: Old appMeasurement plugins
              bhanuc99794808 Level 1

              I have done the same steps , but i am getting the warning icon . Could you please help me why i am getting this.

               

              • 4. Re: Old appMeasurement plugins
                stewarts16448458 Level 3

                It's nothing to worry about. 

                 

                I get those too when pasting these plugIns into Launch.  You are safe to ignore them.