Where should the JS automatic submission code for headline and search engines be pasted in the AnQiCMS backend?
As an old veteran who has been deeply involved in website operation for many years, I know that search engine inclusion is crucial for website traffic.Quickly and accurately submit website content to major search engines is the top priority for every operator in their daily work.AnQi CMS, as an enterprise-level content management system that understands the SEO path, provides many convenient functions in this aspect.Today
Understand this problem, first you need to understand the submission mechanisms of different search engines.Like Baidu, Bing and other mainstream search engines, they usually provide API interfaces that allow websites to push new content directly through the server, which is efficient and stable.But for some platforms that have considerable traffic but do not provide a direct API push interface, such as Toutiao, 360 search, and others, they often require websites to embed a segment of JavaScript code in the page.This JS code is executed when the user visits the page, thus reporting the page URL to the corresponding search engine to achieve the purpose of 'auto-submission'.
Then, facing this JS code, where should we paste it in the Anqi CMS backend to ensure it runs efficiently and without errors?The answer is actually very intuitive, and you don't need to delve into the code, nor do you need to make complex template modifications.
Core operation: Locate the correct position of the Anqi CMS backend.
One of AnQi CMS's design philosophies is to 'make operations simpler'.For such JS code that needs to take effect globally, the system has reserved a special paste area for you.You just need to follow the path as follows:
- Log in to the Anqi CMS backend management system.This is the starting point for all operations.
- Find and click in the navigation menu on the left side of the backend.“Function Management”Module. This module gathers various practical operation tools provided by AnQiCMS.
- In the submenu of "Function Management", you will see a name called"Link Push"Click to enter the options.
- In the management interface of 'Link Push', you will find the active push configuration area for Baidu search and Bing search engine, as well as a dedicated input box with a title clearly indicating“360/Top News and others JS auto-submit”.
That's right, it's right here! This input box is prepared for search engines like Toutiao, 360 Search that depend on JS code to submit.
How to paste JS code correctly
Locate the correct position first, then paste the code. There are several key points to note:
- Paste completely:Make sure to use the complete JS code you obtained from the Today's Headlines site owner platform (or 360 Search, Sogou, and other platforms), including
<script>and</script>The tag itself, paste it completely into this input box. Do not omit any part, and do not paste only the JS code without including the tag. - One-time configuration:Paste and save, this JS code will affect all front-end pages of your website.This means you don't have to manually copy the code to each page template, the intelligent mechanism of Anqi CMS will help you complete this task.The system will automatically render it to the appropriate position on the website page (usually
<body>Ensure that the code is executed correctly before the tag ends, without the need to manually edit the template file.This greatly reduces the difficulty of operation and avoids errors that may be introduced due to manual modification of the template.
Verify the submission effect: Ensure everything runs normally
After the configuration is completed, simply pasting is not enough; we also need to verify whether it takes effect.
- Publish or update content:Try to publish a new article or update an existing article on the Anqi CMS backend. This action will trigger the system to notify search engines of page updates.
- Check the push records:Although JS submission will not show an explicit 'Success' message in the 'Recent Push Records' of Anqi CMS like Baidu/Bing API (because JS is executed on the user's browser), you can observe the data statistics of JS submission volume on the site owner platform of the corresponding search engine (such as the Toutiao site owner platform) or observe the inclusion of related pages a few days later.Generally, if the code is pasted correctly and the website structure is good, the page indexing speed will be improved.
operational strategy suggestions with the SEO advantages of Anqi CMS
By using AnQi CMS, you can easily manage the submission requirements of various search engines.For platforms that require JS code submission, this "paste and use" mode greatly simplifies the operation process.At the same time, don't forget the other out-of-the-box powerful features provided by Anqi CMS in terms of SEO, such as:
- Sitemap auto-generated:help search engines efficiently crawl the website structure
- Robots.txt configuration:refine the crawling scope of search engines.
- 301 Redirect Management:Avoid weight loss caused by page changes.
- Keyword library and anchor text:Optimize on-site link and keyword layout.
- Flexible content model:Build a clear website content structure to enhance user experience and search engine friendliness.
Fully utilize these features,配合JS automatic submission, your website will gain better visibility in search engines, attracting more targeted users.The goal of AnQi CMS is to enable small and medium-sized enterprises and content operation teams to manage content and marketing promotion more efficiently and safely, and this tiny JS code paste position is a reflection of its "simplify complexity" philosophy.
Frequently Asked Questions (FAQ)
1. Why do some search engines push using APIs while others use JS code?
This is mainly determined by the open strategy of the technical interface of search engines.Like Baidu and Bing usually provide server-side API interfaces, allowing websites to directly interact with their systems, this method has high push efficiency and strong controllability.And some search engines, may not provide direct API due to technical costs, security policies, or product positioning, but instead choose to collect page information by executing JS code on the client (user browser).The AnQi CMS provides a JS code paste area to ensure that the website content can be submitted as widely as possible across these platforms.
2. Do I need to paste the JS code into every page template of AnQiCMS?
Completely unnecessary. The '360/Toutiao and others JS automatic submission' input box in AnQi CMS is a global configuration option.You just need to paste the code completely into the specified position on the background "Function Management" -> "Link Push" page, and the system will automatically handle it, ensuring that this JS code is rendered on all the front-end pages of the website.This greatly simplifies the operation, avoiding complexity and errors that may arise from manually modifying the template.
3. Why haven't the data on the site owner platform been updated immediately after pasting the JS code?
The JS submission mechanism of search engines is usually triggered when the user accesses the website page, while data crawling, processing, and statistics require some time.Therefore, after pasting the JS code, the data on the site owner's platform may not be updated immediately, usually it takes several hours or even one or two days to see the effect.In addition, the number of visits to the website will also affect the trigger frequency and submission efficiency of the JS code.Suggest to paste and observe for a few days and ensure that the website has normal traffic access.