Code embedding
Code embedding includes the code widget (Html/Css/Js), Aifanfan, CNZZ, and the third-party video widget. This document explains how to use these widgets.
Add an advanced widget
In the designer, click Advanced and select the code widget (Html/Css/Js), Aifanfan, CNZZ, or third-party video widget.
Code widget
-
Prerequisites: You must write your code in HTML, CSS, and JavaScript. To prevent conflicts, you cannot use external JS libraries.
-
Use case: Use this widget to add features that are unavailable in existing widgets, such as a weather forecast.
Aifanfan widget
Click the widget to open the quick settings panel, where you can edit and arrange it. In the site editor, select the Aifanfan widget and click Edit on the top toolbar. In the Code dialog box that opens, paste the integration code from Aifanfan into the text area. You can then use the Aifanfan communication tool to handle visitor inquiries on your website.
-
Edit: Paste the Aifanfan code into the Data field.
-
Arrange: Set the size and position of the widget.
Since 2020, individual users can no longer use Baidu Shangqiao. Enterprise users must run Baidu Promotion campaigns or use Aifanfan CRM to access Baidu Shangqiao features. To obtain the code, see Baidu Statistics Help Documentation.
CNZZ widget
To use Umeng Statistics, you must obtain the CNZZ website statistics code, click Edit, and paste the code. In the site editor, select the CNZZ Code control, click Edit on the control toolbar, and a Code panel appears on the right. Paste the CNZZ statistics code into the text box. This control supports only CNZZ statistics code.
Third-party video widget
Select the video widget. The quick settings panel provides options for Edit, Animation, and Arrange.
-
Edit: Enter the embed code for videos from platforms such as Youku, Tencent Video, iQIYI, and YouTube. For a video tutorial on how to get an embed code, click Using video widgets.
NoteIn the ApsaraVideo VOD console, upload a video, click , and copy the link into the Data field.
-
Animation: Set an animation effect for the video widget.
-
Arrange: Set the size and position of the video widget.