AnQi CMS, as an efficient content management system that focuses on SEO optimization, understands the importance of website content being indexed by search engines in a timely manner.Although for Baidu, Bing and other mainstream search engines, we can implement active push through API interfaces to accelerate inclusion, but in the face of some platforms mainly relying on JavaScript code for automatic submission, such as 360 search and Toutiao, Anqi CMS also provides a simple solution.By integrating the JS auto-submit code of these platforms, you can ensure that your new published content can be discovered and indexed by these search engines in a timely manner, thereby effectively improving the visibility and SEO performance of your website.

Understanding the value of JS automatic submission

In website operation, the crawling and inclusion of search engines are the starting point of content value embodiment.Generally, search engines access websites through web crawlers to discover new content.For platforms like Baidu and Bing that provide API interfaces, we can directly submit the URL of the new page to them, realizing 'active feeding', which is efficient and timely.However, not all search engines provide such an API interface.For example, platforms like 360 Search and Toutiao prefer to automatically submit content by embedding a JavaScript code snippet in the web page.This JS code executes when the user visits the page, automatically reports the current page URL to the search engine, acting as a 'hidden submitter' to ensure that your content is not missed due to lack of active notification.

Locate the JS automatic submission configuration entry in Anqi CMS

Integrate the JS submission code of these search engines into your Safe CMS website, first you need to log in to your Safe CMS admin interface.In the left navigation bar of the background management system, find and click the 'Function Management' module.Later, in the expanded feature list, you will see an option named 'Link Push Management', click to enter the page.On this page, in addition to the active push interface configurations of search engines like Baidu and Bing, you will find an input box specifically used for '360/Toutiao and other JS automatic submission', which is where we paste the code.

Get the JS submission code of the target search engine

Next, you need to go to the 360 search, Toutiao or other official website master platform of the search engine you want to integrate JS automatic submission function.These webmaster platforms usually provide SEO tools or submission entries for website administrators.Please carefully search for instructions on "JS automatic submission", "code submission", or similar functions, and obtain the complete JavaScript code segment according to the guidance.These codes usually contain<script>The beginning and end of the tag. Make sure to copy the code completely, do not omit any characters, as incomplete code may cause the function to fail.

Seamlessly integrate JS code into Anqi CMS

After you successfully obtain the required JS automatic submission code, please paste it into the input box of the "Link Push Management" page in the Anqi CMS background under "360/Toutiao and other JS automatic submission". The design of Anqi CMS allows you to paste the entire JavaScript code snippet, including its external context.<script>and</script>Label, paste it directly into this text box. After pasting, please make sure to click the 'Save' or 'Submit' button at the bottom of the page to ensure that your settings are correctly saved by the system.AnQi CMS will intelligently embed the JS code you enter into the appropriate position of the website's front-end page, such as the page's<body>or the</head>Make sure the code runs smoothly when the page loads so that the content submission can be completed before the tag

Verify if the JS automatic submission code is working correctly

To confirm that the JS automatic code submission has been successfully integrated and is working properly, you can access any page on your website in the browser, especially those new released articles or product pages you want to be indexed by search engines.After the page has loaded, right-click on the page and select “View Page Source” (or depending on your browser, select something similar like “Inspect Element” and switch to the “Elements” tab).In the open source code view, you can use the search feature (usuallyCtrl+ForCommand+F)to find the JS code snippet keywords you previously pasted, or search for identifiers related to the internal code output of Anqi CMS, such aspluginJsCode. If you can find this complete JS code in the page source and it matches exactly with what you have configured in the backend, then it means the code has been successfully integrated into your website and will execute the submission operation every time the page is visited.Although there may be some delay in the data update of the search engine site master platform, regularly checking the submission log or inclusion status is also an effective way to verify the effect.

Frequently Asked Questions

Q1: Why doesn't the JS code I pasted work, and I can't see it in the website's source code?

A1:If you cannot find the pasted JS code in the website source code, first check if you have clicked the 'Save' button on the 'Link Push Management' page in the Anqi CMS backend to ensure that the settings have taken effect.Secondly, the Anqi CMS front-end template needs a specific tag to output this JS code.Please confirm that your website template files (such as common header or footer files) include{{- pluginJsCode|safe }}This tag. If this tag is missing in the template, even if the code is configured on the backend, it cannot be rendered on the frontend page.

Q2: Can I paste the JS code for 360 and Toutiao in the same input box?

A2:Yes, the '360/Toutiao and others JS automatic submission' input box of Anqi CMS supports you to paste multiple search engine JS automatic submission codes.You can paste code from platforms like 360 and Toutiao in order into the same input box.The system will output the code in the order you enter it to the front end of the website when the page is rendered.

Q3: Why does AnQi CMS not directly provide an API for active push interface to 360/Toutiao?

A3:AnQi CMS has provided a mature API active push interface for mainstream search engines such as Baidu and Bing, because these platforms have open APIs available for integration.For platforms like 360 Search and Toutiao, they currently provide content auto-submission services mainly through front-end JS code, rather than open standard API interfaces.Therefore, Anq CMS adopted the direct method of providing a JS code paste entry to maximize compatibility with the characteristics of these platforms, ensuring that users can make full use of all available SEO optimization tools.