Code Snippets

Code Snippets

Using the D.engage code snippets you can personalize content for each contact to provide a tailored experience to the users.

To create a code snippet you need to go to the code snippet section under the content tab in the CDMP. You can choose between different content types to create snippets accordingly, for example, to create code snippets for emails you can use content type as HTML similarly for SMS you can choose plain text. 

Salutation Text: Using this code snippet you can change the salutation text of emails/messages automatically using the contacts gender column’s data.

Visited Products Snippet: To generate emails based on the data of the visited products of the customer you can use the below code snippet.

Recommend Products From Tables:
You can get data from any table in the database using $from function with the table name. For example to display products from the recommendation table.

Show Abandon Cart Products:
You can generate specific emails for each customer who added the products in the cart and left to remind them according to what they added in the cart using the data from the events table of abandoned products table.

Carousel Push Notifications:
You can create personalized Push notification content by using products from any table.

Custom Promotional Emails:
You can use the code snippets to create custom promotional emails for customers.

Show Recommendation From Table Push:
To show recommendations of products from a table you can use this code snippet. You can select the content type as JSON for creating snippets for push notifications.

    • Related Articles

    • How can I create and launch email content without html?

      To create Email Content without HTML, we have "Drag & Drop Editor". To create through "Drag & Drop Editor", go to content. Click on Email, and add a new email. Choose the "Drag & Drop Editor" to create your email content. In the drag and drop editor, ...
    • I want to insert a dynamic content from a table into a content, how can I do this?

      You can insert the dynamic content from the Master Contact Table by using a customization tag... OR If you are using any information within any table for searching data, information. For any channel, we can insert any information through code ...
    • How to create Shopify Coupon Codes in D·engage

      You can create generic as well as unique coupon codes in D·engage platform for your Shopify Store. These codes can be inserted into the email and SMS. Shopify enforces a limit of 20 million unique discount codes for each Shopify store. If you reach ...
    • SurveyMonkey - D·engage Integration

      With the SurveyMonkey integration, you can now import survey responses directly into your D·engage account, enabling you to enrich your Master_Contact table and build segments based on audience responses to create a more personalized experience. ...
    • Is it possible to create an html email content?

      Yes, surely it's possible to create Html content for the emails. Just go into the content tab. Click add content and select code editor from the content section where you can write HTML and JavaScript code.