Adobe recommends the following best practices when using on-device decisioning:
When using “on-device” as the decisioning method, the artifact is downloaded when the visitor loads the webpage for the first time. Any activity qualification that needs to happen on the first page load (no cache) happens only after the artifact is fully downloaded. There are certain best practices you can follow to ensure that activity qualifications happen fast for a new anonymous visitor.
When using “hybrid” as the decisioning method, the artifact is downloaded in parallel. Until the artifact is downloaded, any Target API calls go over the wire even if the “locations” are on-device capable. This behavior is the default for all
getOffers() calls and provides the best performance in most situations. If you change the default behavior of
getOffers() by setting the
on-device, follow these best practices to avoid errors and ensure the best performance.
on-devicewhen the page loads for the first time, you must do so inside the “ARTIFACT_DOWNLOAD_SUCCEEDED” at.js event handler to avoid errors. If your artifact is very large, any “locations” using this approach are rendered only after the artifact is fully downloaded, which can delay experience rendering. Adobe recommends that you rarely use this approach. Follow the best practices to reduce artifact size under the “On Device” best practices section above when using this approach.