Capturing number of shares of picture for Zap analytics

Hi there,

For I project we’d like to capture the number of shares that are being made in the Zappar-app.
The project starts with a video which is ending in selfie-mode. Users can then take a selfie with the main-character of the video. After taking the selfie, you get a preview of it and get the Zappar-apps build-in “Save” and “Share” button underneath.

Is it possible to count the number of shares being made through the “Share” button?

Thanks in advance.

Ferdy

Hi Ferdy,

The snapshot(...) function has a couple of optional parameters you can make use of.

One of these is a callback function which returns the didShare and didSave bool values, which will return true if the user tapped on the corresponding action, although it doesn’t guarantee that they completed the process.

Here’s an example:

Z.device.snapshot ( ’ ', (didSave, didShare) => {

if (didSave){
Z.stats.logEvent(Snapshot saved");
}

if (didShare) {
Z.stats.logEvent(“Snapshot shared”);
}

});

Within the if statements you can use the logEvent function to report the data to your ZapWorks analytics dashboard.

Hope this helps.

All the best,
Seb