Dengage Wordpress integration
In this article, we will guide you through the process to implement the SDK and service worker on your WordPress website.
Below are the steps to set up SDK and service worker on wordpress.
1. log in to the admin panel of your account and navigate to the settings>Application
2. Create a new web application and specify your WordPress website URL.
3. After filling in all the required information it will provide you with the setup guide as below. Copy the script code and download the service worker.
4. log in to the admin panel of your WordPress website and goto Appearance>Theme Editor
5. Select your active theme from the dropdown and click the Theme header. Now paste the script code you copied in step 3 between the head tags.
6. Copy the following code and paste in your theme functions.php file.
- function register_my_service_worker () {
- echo "<script>navigator.serviceWorker.register('/dengage-webpush-sw.js')</script>";
- }
- add_action ( 'wp_head', 'register_my_service_worker' );
7. Now upload the file you downloaded in step 3 to the root directory of your WordPress website.
Related Articles
Event Data Integration
There are two options to send Event Data to D·engage: 1. Send event data via D·engage SDK First, you need to create a website application to use the dEngage Web SDK. Go to D·engage Event SDK page for detailed instructions to 'create an ...
Neto Integration
Neto D·engage Integration In a matter of minutes, without a single line of code you will become able to connect your Neto store to your D·engage account. This integration is a one-way sync that sends your product catalog as well as your contact and ...
D·engage GTM Integration
There are two different ways for GTM integration. You can create new google tags as well as, you can use existing ones. (a) Using Existing Tags for Sending Events Data In order to use your existing triggers to send data to the D·engage platform you ...
Woocommerce Plugin for D·engage Integration
D·engage is now able to integrate with the most go to platform for Ecommerce, i.e Woocommerce. Integrating with D·Engage via WP plugin is a couple of steps process that provides ease and flexibility to your tech team. Let me guide you here the steps ...
Shopify Integration
Shopify D·engage Integration In a matter of minutes, without a single line of code, you can connect your Shopify store to your D·engage account. This integration is a one-way sync that sends your product catalog as well as your contact and order data ...