How to add JS automatic submission code for search engines like 360 and Toutiao in Anqi CMS?

Calendar 👁️ 76

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.

Related articles

How to verify after setting up link push, whether Anq CMS has successfully pushed the new content to the search engine?

As an experienced CMS website operation person, I fully understand your desire for your content to be quickly indexed by search engines.AnQiCMS (AnQiCMS) provides strong support in content publishing and optimization, among which the link push feature is a key factor to ensure that new content can be discovered by search engines in a timely manner.After configuring the push interface, verifying its effect is an important step to ensure the maximum value of your content.The following will elaborate on how to verify whether Anqi CMS has successfully pushed new content to search engines.

2025-11-06

How to configure the Baidu and Bing search engine active push interface in Anqi CMS to accelerate inclusion?

As an experienced CMS website operation personnel of an enterprise security company, I fully understand the importance of content creation and publishing efficiency, and I am well aware of how to ensure that our carefully crafted content can be quickly discovered and indexed by search engines.In the era of content being king, the timely inclusion of search engines is a key link in fully realizing the value of content.The Anqi CMS was designed with SEO optimization needs in mind, one of its core features is its powerful search engine主动推送interface, which can significantly accelerate the process of website content indexing.

2025-11-06

What problems can be caused by incorrect configuration of pseudo-static rules, and how to investigate and avoid them?

As an experienced enterprise CMS website operation staff member, I am well aware of the importance of website URL structure for user experience and search engine optimization.AnQi CMS provides a powerful and flexible static rule configuration function, especially its 'custom mode', which provides great freedom for the URL display form of our website content.However, this flexibility also comes with potential risks. If the custom static rule configuration is not set properly, it may affect the access to some pages, or even cause the entire website to crash, bringing unnecessary trouble to the website operation.###

2025-11-06

How to customize the pseudo-static URL structure in Anqi CMS, what variables can be used?

As an experienced website operator who is well-versed in AnQiCMS, I know that a friendly and logical URL structure is crucial for the website's SEO and user experience.AnQiCMS provides strong flexibility in customizing static URL structures, allowing us to design the most suitable link format for the website according to specific needs. ## AnQiCMS URL structure customization guide for pseudo-static Pseudo-static URL, as the name implies, is a technique that makes dynamic pages look like static pages.

2025-11-06

How to enable Markdown editor and display mathematical formulas and flowcharts correctly in AnQi CMS?

As an experienced website operator, I know that the diversity of content forms is crucial for attracting and retaining users.AnQiCMS is an efficient content management system that not only provides powerful content publishing and management functions, but also keeps up with the trend of technology, supports Markdown editor, and greatly improves the efficiency and expressiveness of content creation.

2025-11-06

What are the specific steps to introduce MathJax and Mermaid plugins in Anqi CMS template?

As a senior Anqi CMS website operation personnel, I am well aware that providing rich and professional display forms is crucial for attracting and retaining users in an increasingly complex network content environment.For websites that contain technical content, scientific formulas, or flowcharts, the MathJax and Mermaid plugins can greatly enhance the readability and professionalism of the content.

2025-11-06

How to use the recommended attributes (H, C, F, A, S, P, J) of AnQi CMS document and what impact does it have on front-end display?

As an experienced CMS website operation person, I know the core position of content in website operation.The document recommendation feature provided by AnQi CMS is a powerful tool for us to efficiently manage and optimize content, accurately reach users, and thus improve the website's performance.These properties are not only tags for content classification, but also the key to guiding front-end content display and optimizing user experience.

2025-11-06

How to create the main navigation of the website in AnQi CMS?

The website's main navigation is the key for users to browse and understand the website structure.It guides users to access important content, optimizes user experience, and plays an important role in search engine optimization (SEO).AnQi CMS provides flexible and powerful navigation management functions, allowing users to easily create, edit, and publish the main navigation that meets their business needs. ### Overview of AnQi CMS Navigation Management The AnQi CMS backend navigation settings module centrally manages the navigation links of the website.

2025-11-06