Questions tagged [javascript]
JavaScript is a dialect of the standardized ECMAScript programming language, primarily used for scripting web-pages. Use this tag for questions regarding ECMAScript and its dialects/ implementations: JavaScript, JScript, etc., excluding ActionScript.
822 questions
0
votes
0
answers
4
views
JavaScript won't let me declare variables [closed]
I'm just starting JavaScript and I can't declare a variable. Possible that it is being declared but when I use the variables in a math equation there is no output from that equation.
For example:
...
1
vote
1
answer
116
views
What company is behind the web tracking scripts from `smart-enterprise-365.com` and similar domains?
I inherited a website which has an embedded tracking script like the following:
<script type="text/javascript" src="https://secure.smart-enterprise-52.com/js/144709.js" ></...
0
votes
0
answers
20
views
how to convert Excel spreadsheet to json API
I have a client that wants to update and add properties and property details including images via an excel spreadsheet. They are using Wordpress as a CMS but I want to keep the property section ...
0
votes
0
answers
29
views
Installing GA4 initialisation through external files
I have been loading GA4 by loading two external scripts, one
<script async src="https://www.googletagmanager.com/gtag/js?id=[TAG-ID]"></script>
as (in Wordpress)
...
0
votes
1
answer
92
views
Is it a good idea to append json+ld file into the body using javascript
I'm trying to add structured data to my product page on Shopify in a json+ld file
But when it comes to the reviews, I'm using stamped.io and to get all reviews array I needed to fetch data from their ...
0
votes
4
answers
58
views
Handling non-javascript fallback pages without violating WCAG guidelines
I used the demo version of PowerMapper tools online to scan my pages and it presents the following issue to a page I'm about to explain.
Basically, a page that I have is a fall-back page for clients ...
2
votes
1
answer
34
views
How influences a Javascript redirect without status code change crawling and indexing?
We have a category page with linked products. Linked products are usual a href links to pages like
Category: /category
Product: /product1
After clicking /product1 there is a Javascript redirect to /...
1
vote
2
answers
38
views
Website image rendering issue on Google SERP [closed]
I have a website in React, and it's a E-commerce website. On SERP when a catagory page renders, it shows images of popular products.
What can I do ?
Nothing is wrong with the website; all images are ...
0
votes
1
answer
105
views
Do indexer bots set navigator.webdriver property to true?
The webdriver read-only property of the navigator interface indicates whether the user agent is controlled by automation.
Source
I couldn't find anywhere if it includes indexing crawlers such as ...
1
vote
1
answer
182
views
Can I install and use an 'npm package' such as ChartJS/OpenLayers in my static website on github pages, or do I need a host that supports NodeJS?
I am building a dashboard with ChartJS and OpenLayers installed through NodeJS, so I install packages locally with npm. OpenLayers also must be installed locally through npm, as there is no CDN link ...
1
vote
1
answer
138
views
SEO: How is a javascript history.back link treated by search engines?
I have an back button on each page and subpage on my website.
I always takes the user to the previous page, no matter how many posts and redirects etc. happened on the subpage the user is on
Now I'm ...
0
votes
1
answer
46
views
Self-referring canonicals not being picked up by Google but can be seen in crawlers, and inspect tool
My client previously had issues with their self-referring canonicals not set up correctly. After they implemented the corrections, I verified the changes through a combination of methods. I conducted ...
1
vote
0
answers
28
views
How to view normal table data without metrics in google analytics
I am sending custom event through code to Google Analytics.
gtag("event", "my_custom_event", {
field1: "value1",
field2: "value2",
});
I am unable to ...
0
votes
1
answer
144
views
Can bots create click events?
The content on my site is primarily PDFs. I would like to get more accurate information as to whether actual humans are accessing them. I thought to add a javascript click handler on the links that ...
0
votes
1
answer
68
views
External stub links vs on-click partial page replacement for SEO
I'm not sure anyone has asked this but here goes.
I made a website where the goal is to sell tickets.
The pages are as follows:
The main page that's loaded contains the event name, location basic ...
1
vote
0
answers
184
views
How to say google wait until the ajax call response then crawl?
I've added schema markup (ld+json formatted) for some pages of my website. I've validated the generated schema markup script manually through the Google Rich Result tool and it' ok.
My problem is, ...
0
votes
1
answer
34
views
Custom "cookie solution" [closed]
I'm working on a website for a client who owns a restaurant.
I've just finished developing it and I'm working on the part relating to the privacy policy and related cookies.
The cookies used by the ...
2
votes
1
answer
1k
views
Google is accidently indexing query string URL parameters and causing my website bandwidth increase
Google is currently indexing query strings URLs of my website. Google has currently indexed almost 112k URLs that all are duplicate version of other URLs causing my website to slow down and negatively ...
4
votes
2
answers
442
views
How search engines detect when Javascript is finished execution?
I have single page application, which I would like to add different meta description tag depending on URL. Application does initial data loading from server via fetch (which is needed for description),...
1
vote
0
answers
39
views
Display data on Html page [closed]
I have a website that displays data from external files. But there is a problem with the display as in the attachment. How can I control the page size to display the full data without compression ??
3
votes
1
answer
332
views
Handling # uri fragments as regular requests
So I have a one-page website with multiple sections and IDs. Right now, in the nav, I have it going to #about to jump them down to a section with ID=about
But I want the user to be able to go to ...
2
votes
0
answers
378
views
How to add something crawlable to JavaScript links in order to satisfy Google Lighthouse
I'm doing some Google lighthouse analysis on my site and the tool is complaining about our "add to cart" links. We use a pre-fab PayPal cart system called Vibracart, which is great but is ...
2
votes
1
answer
76
views
What is the impact of using edge workers to serve static versions of a dynamic application before loading JS?
Here is my dilemma:
I have quite a complex e-reader single page application. It uses rewrites to route say /book/page/2 to /index.html for processing behind the scenes. The JS payload is quite heavy, ...
2
votes
0
answers
30
views
Monitor ads showing on site by their URL
Intro: I use Ezoic to show ads on my site. It uses many ad exchanges such as Google Ad Exchange to real-time bid against my Adsense ad inventory, and the winner will be shown on ad placements.
Problem:...
4
votes
1
answer
115
views
Do I have too many pages with canvas/svg tags on them?
Being documentation for my charting software, I have a lot of pages on my website that have SVG and/or canvas tags on them.
I recently learned from a Google video that during indexing, the JavaScript ...
2
votes
0
answers
35
views
Use Google Tag Manager to detect if a specific brand is being purchased by triggering when it is included in the order
I'm setting up Google Tag Manager on e-commerce store where is a lot of brands.
I need to make trigger on Floodlight script when is specific products in purchase.
So I made trigger where is detected ...
2
votes
1
answer
143
views
How can I copy a website from GoDaddy cPanel to my Mac
I want to move a small working website to my Mac for testing and experimenting. There is a small database with the website that will need to be accessed locally as well. The website is currently ...
18
votes
1
answer
13k
views
Do search engines perform JS rendering while crawling?
I have couple of websites recently created (~8 months) and Google is marking them as "Duplicate without user-selected canonical" or "Page with redirect" errors
How I implemented:
...
1
vote
0
answers
299
views
Fetch doesn't seem to work in Heroku deployed app
This is an issue that im bringing over from the general stackoverflow because I was told it should be asked here instead. The original issue is moreless gone now. The issue now is that when I am ...
3
votes
1
answer
515
views
Will search engines understand the HTML template tag with client side rendering?
I have a page that uses HTML <template> tags. I don't know the page length like this.
<template>Some Html</template>
<template>Some Html2</template>
<template>Some ...
3
votes
1
answer
425
views
Is it OK for SEO to make content available via AJAX when users click, but also to load that content on its own URL?
I'm working on a website and I want to use AJAX for some content, but I'm worried about search engines crawling my site, and I know Google and other search engines only see contents that are currently ...
1
vote
0
answers
89
views
How to view my promoted tweets in the Twitter app to debug JavaScript?
I'm driving traffic to a website with PPC on Twitter. AWS CloudWatch is reporting that 80% of my visitors are experiencing JavaScript errors — but 100% of those errors are happening in the on-device/...
3
votes
1
answer
292
views
How to improve page speed of a site built with Prismic
It looks like all the sites who use Prismic get a terrible score at Page Speed Insights.
Questions:
Is Prismic really slowing down all the sites that use their CMS?
List of sites using Prismic
Score ...
0
votes
0
answers
32
views
How do I improve the client-rendered content for SEO?
I have a website with many links on it. Some of the links are user generated.
For instance:
example.com/?some_information
example.com/?some_other_information
The page will utilize the parameter to ...
1
vote
0
answers
36
views
Do Dynamically-Generated Custom Tags Harm SEO?
In my JavaScript file, I create a "fake" tag (Like this):
<fake-tag>
<another-fake-tag></another-fake-tag>
<self_closing-fake_tag />
</fake-tag>
These ...
3
votes
0
answers
36
views
Start hosting with firebase
I made a new firebase project and web app, and i want to use firebase hosting on it. I have a directory set up on replit with html, js, css, but how do i host it on firebase?
I have tried looking at ...
1
vote
0
answers
72
views
Exposing content from client-side headless CMS API to web crawlers
This is something I've been struggling to wrap my head around for the past few days. Tried to keep the rambling to a minimum but concise questions are at the bottom.
As I understand it, utilizing JS ...
1
vote
0
answers
40
views
How to plot .tif file colour coding onto the map using javascript? [closed]
I want to plot colour coding from .tif file into the map with the help of react-leaflet. How can this be done?
I am open for other better suggestions. My core goal is to display color coding given in ...
0
votes
1
answer
305
views
Refused to execute inline script with Comodo Trust Seal
I'm trying to add the Comodo Trust Seal on my site but it gives this error in chrome:
Refused to execute inline script because it violates the following
Content Security Policy directive: "...
3
votes
0
answers
3k
views
SEO | VueJS | Why do I see "We're sorry but desk-app doesn't work properly without JavaScript enabled. Please enable it to continue." in web browser?
I set up a single page application using Vue.js and Firebase.
It works fine but when I search for the website in Google Chrome, this is what pops up :
I expect to see a proper description, instead of ...
2
votes
1
answer
195
views
How Does Google Analytics Calculate Browser Size?
How does Google Analytics calculate the Browser Size metric that it reports for user sessions?
Another thing that would be helpful would be a way to modify a browser to replicate the "(not set)&...
1
vote
1
answer
545
views
Does onclick animation affect SEO?
We want to build the website with mind-blowing animations, but SEO is also important for us and I am wondering about the SEO effects in the case of CSS and JS animations.
Let's say we want to build ...
2
votes
1
answer
158
views
Google Analytics reporting all traffic as organic
My website is built using Angular. The frontend pages are built using Angular SSR (server-side rendering). My checkout pages are using Angular, but not SSR. The issue is that once a user lands on an ...
2
votes
1
answer
499
views
Why are two completely different pages considered Duplicate without user-selected canonical?
I am working for an online casino, and the blog page is deemed Duplicate without user-selected canonical to the main casino page? The two pages are completely different and have nothing to do with ...
3
votes
1
answer
1k
views
Is Largest Contentful Paint (LCP) measured only above the fold?
A lot of sources mention that LCP is measured only above the fold, and stops measurements after a user action like scroll or key press. Though, I am able to get LCP for an image which is lazy-loaded ...
2
votes
0
answers
228
views
SEO test tool doesn't see my H1 generated by JavaScript, will Google?
On what basis is SEO checked? When I examine my page, an H1 tag is present. However, when I look at the page source, an H1 heading is not present because it is generated via JavaScript (CMS in the ...
4
votes
1
answer
128
views
Is it black hat SEO to add content (self hosted ad images) after window onload
There are about 12-15 Ads:Images(mostly GIFs, self hosted on same server and domain) and appear on all the pages. Since the file size of GIFs are relatively larger(some upto 2 MB), they have started ...
5
votes
3
answers
734
views
Does Googlebot call every link separately (with a new request)?
Does Googlebot call every link separately (with a new request) or does it follow all links by JavaScript (for example by click event)?
I have a vue-js website which contains all the links and of ...
2
votes
2
answers
2k
views
Is it possible to disable indexing through JS?
Is it possible to disable Google indexing of some web page if this is placed to head tag
<meta name="googlebot" content="noindex" />
using only JS? Or is it all a hoax and ...
2
votes
1
answer
639
views
Core Web Vitals - Field data difference Mobile vs Desktop
I am observing a strange problem related to Core Web Vitals, I have same website for both mobile and desktop(same server/same page/same DOM size) but I when I look into search console I get different ...