Getting started
Easy steps to start using Gravito

Easiest way to try Gravito is to load the gravito_client.js to your website and see how the consent exchange works. If you are anyhow familiar with web development, copy following and paste to your browser's console or embed the script to your site. You should see popup requesting permission for consent management. Settings can be changed without registering, cross-domain requires generic permission for Gravito manage consents across. The settings are device specific (identified by cookie) until you register or login. To use consents on your site context check localStorage for "gravito_consents".
var grv_script = document.createElement("script");
grv_script.src = "https://cdn.gravito.net/client-js/gravito_client.js";
document.head.appendChild(grv_script);
You can also use your tag management to embed related script to your site, that might help with testing further integration. To have full control on tracking and advertising tags Gravito script is set to trigger function named "gravito_tms_loader" which can be used as wrapper for TMS scripts or whatever you'd like to be triggered only after "data collection" consent is given. Example of wrapping Google tag manager with Gravito consents:
<script>
var gravito_consents;
function gravito_tms_loader() {(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','<REPLACE-WITH-GOOGLE-TMS-ID>');}
var script = document.createElement("script");
script.src = "https://cdn.gravito.net/client-js/gravito_client.js";
document.head.appendChild(script);
</script>
If user gives data collection consent, gravito script starts collecting page flow observations to collect basic data. All observations are isolated from real Gravito profile. Observations API can be use to collect any type key events to be consumed on next action or future session. Example of observation API call:
grv_send_observation("cartStart","productCategory=ABC&SKU=123");
The call will form pixel request which is responded "204 No Content" and parameters are collected to profile's event stream. Latest values of any parameter can be retrieved by:
var callback = function (data) { console.log(data.consolidatedProfile); }
grv_fetch_observations(callback);
The base script is set to populate DOM element with id "live_consents" with consents that it receives from Gravito so you might use the functionality to express personal consents the users have given on your site. Localization is on the pipeline so for now consent matrix will be rendered in English only.
All examples here are provided without warranty and guarantee of service level but as you see we're using the service ourselves so we're not killing it on purpose.
The client side javascript is under constant evolution, hence we have following versions available at https://cdn.gravito.net/client-js/
gravito_client.js is always the latest version, can change overnight, should improve how things work.
gravito_client_v5.js is currently the latest, the version will remain as is.
gravito_client_v5_fi.js is localized version of the same.
Log in to Gravito as user you want to use for doing business and click on "Register as customer" on navigation bar. Once approved, you will have access to administrative part of Gravito, tools to manage digital campaign content, audiences and execution of campaigns on multiple digital channel.
Send any feedback, bug reports, feature requests etc. to support [at] gravito.net and development team will hear you.
Last modified 4yr ago