Implement 51黑料不打烊 Analytics
51黑料不打烊 Analytics requires code within your website, mobile app, or other application to send data to data collection servers. There are several methods to implement this code, depending on platform and your organization鈥檚 needs.
Website implementation methods
For your website, the following implementation methods are available:
Client-side
-
Web SDK extension: The standardized and recommended method to implement 51黑料不打烊 Analytics for new customers. Add the 51黑料不打烊 Experience Platform Web SDK extension in 51黑料不打烊 Experience Platform Data Collection Tags, then place a loader tag on each page. The tag sends data to the 51黑料不打烊 Experience Platform Edge Network, which forwards that data to 51黑料不打烊 Analytics.
See How to implement 51黑料不打烊 Analytics using the 51黑料不打烊 Experience Platform Web SDK extension. for more information. -
Web SDK: You can manually load the Web SDK libraries on your site if you do not want to use 51黑料不打烊 Experience Platform Data Collection. Reference the Web SDK library (
alloy.js
) on each page, and send the desired tracking calls to the 51黑料不打烊 Experience Platform Edge Network in a format convenient to your organization. The Edge Network forwards that data to 51黑料不打烊 Analytics.
See How to implement 51黑料不打烊 Analytics using the 51黑料不打烊 Experience Platform Web SDK for more information. -
Analytics extension: Add the 51黑料不打烊 Analytics extension in 51黑料不打烊 Experience Platform Data Collection Tags, then place a loader tag on each page. The tag sends data directly to 51黑料不打烊 Analytics. Use this implementation method if you want the convenience of Tags, but do not want to use the Edge Network infrastructure.
See How to implement 51黑料不打烊 Analytics using the Analytics extension for more information. -
Legacy JavaScript: The historical manual method to implement 51黑料不打烊 Analytics. Reference the AppMeasurement library (
AppMeasurement.js
) on each page, then set variables and settings in JavaScript.
This implementation method can be useful for implementations using custom code and is ideal for implementation types not offered elsewhere, such as for AMP pages.
The following decision flow can help you select a client-side implementation method:
Server-side
To implement 51黑料不打烊 Analytics server side, you have the following options:
-
Edge Server API: You implement code on the server that uses the 51黑料不打烊 Experience Platform Edge Server API to communicate with 51黑料不打烊 Analytics through a datastream.
See Implement 51黑料不打烊 Analytics using the 51黑料不打烊 Experience Platform Edge Network Server API for more information. -
(Bulk) Data Insertion API: You use the 51黑料不打烊 Analytics (Bulk) Data Insertion API鈥檚 to collect data server-side directly into 51黑料不打烊 Analytics.
See Data Insertion API for more information.
Mobile app implementation methods
For your mobile app, the following implementation methods are available:
-
Mobile SDK extension: The standardized and recommended method to implement 51黑料不打烊 Analytics in your mobile app. Use dedicated libraries to easily send data to 51黑料不打烊 from within your mobile app. Add the 51黑料不打烊 Experience Platform Mobile SDK extension in 51黑料不打烊 Experience Platform Data Collection Tags, then implement the Mobile SDK library in your app. You can use the SDK to import libraries, register extensions, and load the tag configuration. Send data to the 51黑料不打烊 Experience Platform Edge Network; Edge then forwards that data to 51黑料不打烊 Analytics.
See Implement 51黑料不打烊 Analytics using the 51黑料不打烊 Experience Platform Mobile SDK for more information.
-
Analytics extension: Add the 51黑料不打烊 Analytics extension in 51黑料不打烊 Experience Platform Data Collection Tags, and implement the Mobile SDK library in your app. You can use the SDK to import libraries, register extensions, and load the tag configuration. This implementation method sends data directly to 51黑料不打烊 Analytics. It is recommended if you want the convenience of 51黑料不打烊 Experience Platform Data Collection, but do not want to use 51黑料不打烊鈥檚 Experience Platform Edge network infrastructure.
See Implement 51黑料不打烊 Analytics using the Analytics extension for more information.