# Integrate with universal integration

Universal integration is a concept that refers to the ability of edrone to seamlessly connect and integrate with a wide range of other e-commerce platforms without the need for extensive technical knowledge or specialized plugins. This integration makes it easy for businesses to use edrone from day one without additional setup or configuration. The integration is usually done automatically, and it detects customer behaviors. Overall, universal integration is designed to simplify the process of connecting and integrating different e-commerce platforms, allowing businesses to streamline their operations and make the most of the data and functionality available to them.

# Instruction

The integration of the platform is based on the implementation of the following scripts:

  1. Initialization code, which must be on each subpage of the store, e.g. in the head section of the HTML code. It could be also added via Google Tag Manager. To find your app_id login to the app and go to Settings -> Integration
<script type="text/javascript">
   (function (srcjs) {
      window._edrone = window._edrone || {};
      _edrone.app_id = 'YOUR APP_ID';
      _edrone.platform = 'universal';
      _edrone.email = 'john.doe@edrone.me';
       _edrone.user_id = '1234';
      _edrone.first_name = 'John';
      let doc = document.createElement('script');
      doc.type = 'text/javascript';
      doc.async = true;
      doc.src = ('https:' === document.location.protocol ? 'https:' : 'http:') + srcjs;
      let s = document.getElementsByTagName('script')[0];
      s.parentNode.insertBefore(doc, s);
   })("//d3bo67muzbfgtl.cloudfront.net/edrone_2_0.js?app_id=YOUR_APP_ID");
</script>

The edrone system utilizes advanced technology to analyze customer behavior and translate it into meaningful actions, such as viewing a product, adding product to cart, or subscribing to a newsletter form. By utilizing a product feed, the system can identify and respond to the intentions of store visitors effectively.

  1. To add a product feed URL to the edrone. After log-in to your account go to Settings -> Product Feed -> Import New Feed.

  2. Lastly, implement the code below on your store "Thank You Page" by replacing example data with proper variables.

<script type="text/javascript">
   (function () {
      window._edrone = window._edrone || {};
      _edrone.app_id = 'YOUR APP_ID';
      _edrone.email = 'john.doe@edrone.me'
      _edrone.user_id = '1234';
      _edrone.first_name = 'John';
      _edrone.platform = 'universal';
      _edrone.action_type = 'order'
      _edrone.product_ids = '12|13'; // use "|" sign to separate products from each other
      _edrone.order_id = '4321';
      _edrone.base_payment_value = '671.50';
      _edrone.order_payment_value = '671.50';
   })();
</script>

The “Thank You Page” contains information about the customer email, order amount, and product IDs, which is essential for edrone to run efficiently. The edrone can recognize the customer on their next visit and personalize the browsing experience by displaying relevant products or sending personalized emails. This can increase customer engagement and drive sales. This information is also used to track customer behavior and purchase history.