Skip to main content
CleverTapChange your setup in the sidebar

Step 5: Sync DigiaTemplate

Sync the DigiaTemplate custom code template to your CleverTap project once, so CleverTap in-app campaigns can show Digia Engage experiences.

Required before creating any In-App campaign. DigiaTemplate must be synced to your CleverTap project before you can create Nudge or Survey campaigns. This is a one-time step per CleverTap project, performed once from a test device.

CleverTap Custom Code In-App Templates are developer-defined presentation units registered with the CleverTap SDK that replace the built-in In-App formats (banners, interstitials, etc.) with fully custom rendering logic. Instead of CleverTap rendering the UI itself, the SDK invokes your registered template handler with the campaign payload — your code decides what to render.

The Digia CleverTap plugin ships a custom code template named DigiaTemplate that acts as this handler. When CleverTap triggers an In-App campaign built on DigiaTemplate, the plugin reads the digia_campaign_key from the payload, looks up the matching Digia campaign, and delegates rendering to Digia's runtime.

1. Identify the user on the debug device​

Call the CleverTap user login method in your debug build to associate the device with a known user.

import CleverTap from 'clevertap-react-native';

CleverTap.onUserLogin({
Identity: 'user-123',
Email: '[email protected]',
Name: 'Jane Doe',
});

2. Mark that user as a test profile​

In the CleverTap dashboard, mark only the user from Step 1 as a test profile. See Mark a User Profile as a Test Profile in the CleverTap docs.

3. Open the app on the test device​

No code changes needed. The Digia plugin registers DigiaTemplate with CleverTap automatically at startup. Simply launch the app on the device where the user from Step 1 is already identified — CleverTap will sync the template definition to your project in the background.

4. Confirm the template is synced​

Open In-App → Templates in the CleverTap dashboard and confirm DigiaTemplate appears there before creating any In-App campaign.

DigiaTemplate in the CleverTap dashboard
DigiaTemplate in the CleverTap dashboard
Inside DigiaTemplate
Inside DigiaTemplate