//Granify Android SDK/com.granifyinc.granifysdk/Granify/setChildSiteId

setChildSiteId

[androidJvm]\

@JvmStatic

fun setChildSiteId(childSiteId: SiteIdentifier?)

Notifies Granify that the child site has changed.

In cases where a client has an app that uses multiple child sites (multiple brands), use this method when the shopper switches from one brand to another.

Placement

This function should be called as soon as the child site (brand) in the app changes from the child site initially set in configuration, as well as any subsequent changes. If the brand changes because a new page is loaded, call this method immediately after the Granify.trackPageView(...) method, before Granify.trackProduct(...) or any other Granify call.

Parameters

androidJvm

   
childSiteId The site identifier for the child site. This should be Granify’s identifier, which will be provided to you.