01 Getting Started

This tutorial will cover how to embed your project as an iframe on your own website. We will also cover the following:
  • Publishing your project and getting the iframe/embed script for your website.
  • Website responsiveness and how your web page will display on different devices.
  • Passing parameters from your parent site to the Titan web project in your iframe.
You can publish your project in a number of different ways for your end user to see. You can publish as:
  •  LWC/Lightning Web Component in Salesforce.
  •  Using your own personal website.
  •  Using a URL to host the project.
 This tutorial will focus on an iframe and embed it on your personal website.

02 Configuring for Different Devices

The process to configure each device will be covered in a later video. This tutorial is to show you how each device is labeled, this will impact the size of the iframe.
device drop-down

03 Publishing the Project

1. Click Publish to make your project go live.
  • This means that anyone with the URL will be able to see your project.
Publish project page
 You can use the provided URL to distribute your project or you can embed your project.

04 iFrame

This tutorial will show how to embed the iframe into a WordPress website. The same process can be followed for any website.
1. Ensure the iFrame option is selected and copy the website code.
copy iframe code
2. Paste the copied copy URL into your website.
3. For best practice, set the width to 100% in the iframe code. The height will automatically be calculated.
change width to 100%

05 Preview the Web Page

Save your webpage and preview it.
The content created in your Titan project will display within the iframe.
embedded iframe
After making changes to your project and publishing them, the changes will be reflected in your iframe. If the changes made to your web project are not published, the changes will not reflect in the iframe.
changes made to project

06 Responsive Form

By configuring your web project for different devices, the content will adjust according to the device screen size.
desktop vs mobile

07 Embed

1. Create a static variable called variable from URL. This passes a value from the parent site to this variable in Titan.
  • This is useful for tracking events or passing data to Titan to trigger an action. 
static value from URL
 2. Publish your project, use the drop-down to select the embed option. Copy the code.
copy embed URL
 3. Navigate back to your webpage and insert the new copied code. Preview your web page.
  • Remember to set the width to 100%. 
embed code set to 100%
  • When you try to pass a value from the URL to your iframe. This method will not work if you have embedded your project as an iframe.
  • In order to do this, you need to use post messages from your site to Titan, which we will cover in a separate guide.

08 Pass value through Embed URL

You can pass a value directly from the URL directly to your iframe using embed script instead of iframe script.
Pass value through URL

09 Got Feedback?

Additional Resources