Skip to content

An image

URL or Packaged Integration Guide

Choose one of the following two integration methods:

Packaged Integration

For the packaged integration method, simply enter the URL of your site that includes the pixel generation into the ROIBest backend's "Promotion Link - Site URL" input box.

When the application starts, we will pass the uuid, link_id, and advertising parameters (such as fbclid, etc.) to complete the ad event reporting.

Self-Developed Integration

  • URL Integration: Directly use your H5 URL and select "Packaged Integration" when creating an application in the ROIBest backend. When the application starts, we will pass all the advertising parameters. After obtaining the parameters, you can call our advertising event reporting API to report back or call the query advertising parameters API to report back yourself.

  • Packaged Integration: Build your front-end page and static resources (if static resources are packaged with the HTML, they will be uploaded to our CDN server. Ensure that the project's publicPath is set to "./". You can also choose to place and reference static resources from your CDN server, in which case publicPath needs to be set to your CDN domain.Routing mode currently only supports hash routing.). Place index.html in the top-level directory and compress it into a zip package. Select "Packaged Integration" when creating an application in the ROIBest backend. When the application starts, parameters will be stored in local storage. After obtaining the local storage parameters, you can call our advertising event reporting API to report back or call the query advertising parameters API to report back yourself.

Getting the AppID

In the backend -> App Management -> In the corresponding app information column -> AppID: xxxxxxxxxx

appid.jpg

Fetching Key Parameters

js
const link_id = JSON.parse(localStorage.getItem('__rb_Your appid_link_id'));
const uuid = JSON.parse(localStorage.getItem('__rb_Your appid_uuid'));

Considerations

After obtaining the link_id within the application, it is best to associate it with the user's login information to prevent losing the parameters if the user clears the browser cache.

How to Debug Pixels

Manually append advertising parameters to the copied promotion link. Perform installation and recharge tests. Note that these parameters do not need to be appended for official promotions.

  • For Facebook links, append &fbclid=123
  • For TikTok links, append &ttclid=123

Official Promotion

For official promotion, provide the advertising partners with the generated promotion link

Support Status for Market Technology Integration

Native

Framework/Engine/PlatformVersion ClassificationSupport StatusSupport Explanation

cocos

Cocos CreatorSupported
Cocos2d-html5Supported
Cocos2d-jsSupported
egretallSupported
layaallSupported

unity

allPartially SupportedAfter packaging, the used features can function normally on the web end (Note: Warning is prohibited)
Other platforms that can output in web format

all

Supported

Packaged Web

Framework/Engine/PlatformVersion ClassificationSupport StatusSupport Explanation
Packaged WeballSupported

Web Technology Stack

Framework/Engine/PlatformVersion ClassificationSupport StatusSupport Explanation
vueallSupported
reactallSupported
angularallSupported
uni-appallSupported
html、css、jsallSupported
threejs, pixel.js, other js librariesallSupported
jquery and other librariesallSupported
various web frameworksallSupported
Hybrid/Cordova (phoneGap) and othersallSupported