You can integrate Treasure Data JavaScript SDK with Adobe Launch by embedding custom code inside Adobe Launch that triggers specific events based on the criteria you select.
With Adobe Launch you can manage your Treasure Data tags and keep track of where tags are implemented including which triggers are selected, and the data elements you want to capture.
Adobe Launch
Knowledge of Treasure Data
Treasure Data JavaScript SDK (JS SDK)
Treasure Data recommends you verify the implementation of any new features or functionality at your site using the Treasure Data JavaScript SDK version 3 before you start using it in production. It manages cookies differently. Be aware when referring to most of these articles that you need to define the suggested event collectors and Treasure Data JavaScript SDK version 3 calls in your solutions.For example, change //cdn.treasuredata.com/sdk/2.5/td.min.js to //cdn.treasuredata.com/sdk/3.0.0/td.min.js.
Log in to Adobe Launch.
Select Properties.
Select the name of the property in which you want JS SDK to run. If no properties have ever been created in the account, this screen might be empty and you need to create a New Property.

- After selecting the property, navigate to the Rules tab, and select Add Rule.

The JS SDK is loaded on your site by creating a rule in Adobe Launch that triggers upon page load. 5. Create a rule that loads the JS SDK library at the top of the page, so that the page loads and executes the custom code.

- Type in the custom code.
// track pageview information to 'pageviews' table
td.set('pageviews', {foo: 'foo', bar: 'bar'});
td.trackPageview('pageviews'); - Create additional rules that include various functions such as track pageviews, track form_submits, or click_events.

You can choose to create multiple rules or one rule that includes all the functions to track. For example, you can create a rule to tracks events, anonymized page user settings, or for form fills only on specific pages.
- The rules are loaded and execute the custom code you write.

- After you have created all the rules you want, select Publishing.

- Add the rules that you created, build, and publish.

- Select Save & Build for Development.

After the build completes successfully, you can: 12. Deploy the code to various environments using the Environments tab.
You can test your changes using Adobe Experience Cloud Debugger to troubleshoot without deploying the code to your production environments.
After you download the extension, navigate to the site where you want to test your code.
Return to Adobe Launch.
Select Environments.
Select the cube icon and copy the code displayed.

Launch the Adobe Experience Cloud Debugger.
Select Tools.

- Scroll down to Adobe Launch, paste the copied code, and select Save.

Navigate to the site where you replaced the launch embedded code in the previous step.
If you have the JS SDK to track page views, review a few pages on the site and check the pageviews table in the CDP to see if data shows up in the table.