close

Filter

loading table of contents...

Solution Overview for Business Users / Version 2506.0

Table Of Contents

18.1.5 Javascript API

The CoreMedia JavaScript API, accessible upon the installation of the CoreMedia tag, provides a gateway to a variety of system functionalities, enhancing site interactivity and personalization based on visitor behavior. Key functionalities include:

  • Initiating Calls: Empower your site to start phone calls directly, fostering immediate and seamless communication.

  • Triggering CoreMedia Automations: Activate CoreMedia automations that facilitate interaction with external systems, thereby bridging the gap between your digital presence and the external world.

  • Segment Management: Add or remove visitors from specific segments, allowing for more targeted audience engagement and refined marketing strategies.

  • Enriching Visitor Profiles: Append additional information to a visitor’s profile, enriching their data footprint and enabling more personalized interactions.

  • Activating Campaigns (Interfaces) for Visitors: Crucially, the API allows for the activation of campaigns or interfaces for visitors at specific moments. For instance, if you wish to present a campaign to a visitor at a particular point in a form, this can be programmed via JavaScript to display precisely when needed.

  • Event Tracking for E-commerce Insights: Send events to track e-commerce activities, providing valuable insights into customer interactions. This feature is pivotal for understanding on-site behavior, like items added to a cart.

  • Data-Driven Reactions: The API empowers the system to react based on this data. For example, it can inform an operator about the contents of a customer’s shopping cart or trigger specific campaigns if the cart value exceeds a certain threshold.

To use this api, it is important to be familiar with CoreMedia events, that should be used to inform CoreMedia platform about data, behavior, … Events must be set up in advance within the CoreMedia backoffice.

Example code for appending information to a visitor profile is as follows:

html script type="text/javascript"> (function(){ <var event_info = new Object(); event_info.name =
        "name"; event_info.email = "email"; event_info.context = "context"; event_info.segment = "segment";
        bysideWebcare_event("SetVisitorInfo", event_info); })(); </script>

Example 18.1. Appending information


NOTE:

The interface provides codes like the example above, ready to be executed on the site at the appropriate time when the information becomes available.

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.