Jūs skatāties palīdzības saturu versijai:

Adobe Dynamic Tag Management is a tool that activates your digital marketing tools. It is provided for free to Adobe Analytics customers.

Although you can customize your tracking code to enable third-party CMS solutions to use Asset Insights, Adobe recommends that you use DTM to insert Asset Insights tags.

Perform these steps to enable Asset Insights through DTM:

  1. Tap/click the AEM logo, and go to Tools > Assets > Insights Configuration.

  2. Configure AEM instance with DTM Cloud Service

    The API token should be available once you log on to https://dtm.adobe.com and visit Account Settings from the Profile Icon. This step is not required from the Asset Insights standpoint, because the integration of AEM Sites with Asset Insights is still in the works.

  3. Log on to https://dtm.adobe.com, and select a Company, as appropriate.

  4. Create/Open an the existing Web Property

    • Select the Web Properties tab, and then tap/click Add Property.
    • Update the fields as appropriate, and tap/click Create Property (see documentation).
    chlimage_1
  5. In the Rules tab, select Page Load Rules from the navigation pane and tap/click Create New Rule.

    chlimage_1
  6. Expand Javascript /Third Party Tags. Then tap/click Add New Script in the Sequential HTML tab to open the Script dialog.

    chlimage_1
  7. Tap/click the AEM logo, and go to ToolsAssets.

  8. Tap/click Insights Page Tracker, copy the tracker code, and then paste it in the Script dialog you opened in step 6. Save the changes.

    Piezīme.

    • AppMeasurement.js has been removed. It is expected to be available through DTM's Adobe Analytics tool.
    • The call to assetAnalytics.dispatcher.init() is removed. The function is expected to be called once DTM's Adobe Analytics tool finishes loading.
    • Depending on where Asset Insights Page Tracker is hosted (for example AEM, CDN and so on), the origin of the script source may require changes.
    • For AEM-hosted Page Tracker, the source should point to a publish instance using the host name of the dispatcher instance.

  9. Either create or open an existing Adobe Analytics Tool. While creating the tool, you can set Configuration Method to Automatic.

    chlimage_1

    Select Staging/Production report suites, as appropriate.

  10. Expand Library Management, and ensure that Load Library at is set to Page Top.

    chlimage_1
  11. Expand Customize Page Code, and click or tap Open Editor.

    chlimage_1
  12. Paste the following code in the window:

    var sObj;
     
    if (arguments.length > 0) {
      sObj = arguments[0];
    } else {
      sObj = _satellite.getToolsByType('sc')[0].getS();
    }
    _satellite.notify('in assetAnalytics customInit');
    (function initializeAssetAnalytics() {
      if ((!!window.assetAnalytics) && (!!assetAnalytics.dispatcher)) {
        _satellite.notify('assetAnalytics ready');
        /** NOTE:
            Copy over the call to 'assetAnalytics.dispatcher.init()' from Assets Pagetracker
            Be mindful about changing the AppMeasurement object as retrieved above.
        */
        assetAnalytics.dispatcher.init(
              "",  /** RSID to send tracking-call to */
              "",  /** Tracking Server to send tracking-call to */
              "",  /** Visitor Namespace to send tracking-call to */
              "",  /** listVar to put comma-separated-list of Asset IDs for Asset Impression Events in tracking-call, e.g. 'listVar1' */
              "",  /** eVar to put Asset ID for Asset Click Events in, e.g. 'eVar3' */
              "",  /** event to include in tracking-calls for Asset Impression Events, e.g. 'event8' */
              "",  /** event to include in tracking-calls for Asset Click Events, e.g. 'event7' */
              sObj  /** [OPTIONAL] if the webpage already has an AppMeasurement object, please include the object here. If unspecified, Pagetracker Core shall create its own AppMeasurement object */
              );
        sObj.usePlugins = true;
        sObj.doPlugins = assetAnalytics.core.updateContextData;
        assetAnalytics.core.optimizedAssetInsights();
      }
      else {
        _satellite.notify('assetAnalytics not available. Consider updating the Custom Page Code', 4);
      }
    })();
    • The page load rule in DTM only includes the pagetracker.js code. Any assetAnalytics fields are considered as overrides for default values. They are not required by default.
    • The code calls assetAnalytics.dispatcher.init() after making sure that _satellite.getToolsByType('sc')[0].getS() is initialized and assetAnalytics,dispatcher.init is available. Therefore, you can skip adding it in step 11.
    • As indicated in comments within the Insights Page Tracker code (Tools > Assets > Insights Page Tracker), when Page Tracker does not create an AppMeasurement object, the first three arguments (RSID, Tracking Server, and Visitor Namespace) are irrelevant. Empty strings are passed instead to highlight this.
      The remaining arguments correspond to what is configured in the Insights Configuration page (Tools > Assets > Insights Configuration).
    • The AppMeasurement object is retrieved by querying satelliteLib for all available SiteCatalyst engines. If multiple tags are configured, change the index of the array selector appropriately. Entries in the array are ordered as per SiteCatalyst tools available in the DTM interface.
  13. Save and close the Code Editor window, and then save the changes in the Tool configuration.

  14. In the Approvals tab, approve both the pending approvals. The DTM tag is ready for insertion in your web page. For details on how to insert DTM tags in web pages, see Integrating DTM in custom page templates.

Šis darbs ir licencēts saskaņā ar Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported licenci  Uz portālā Twitter™ un Facebook izvietotajiem ziņojumiem neattiecas Creative Commons sistēmas noteikumi.

Juridisks paziņojums   |   Tiešsaistes konfidencialitātes politika