iissnan / iissnan/theme-next-docs

腾讯分析源代码有bug

Open Beginner friendly
#139 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
165
Forks
55
PR merge metrics
No merged PRs in 30d

Description

```
themes\next\layout\_third-party\analytics\tencent-analytics.swig
```
```
{% if theme.tencent_analytics %}

(function() {
var hm = document.createElement("script");
hm.src = "//tajs.qq.com/stats?sId={{ theme.tencent_analytics }}";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();

{% endif %}
```

需要修改为 :

```
{% if theme.tencent_analytics %}

(function() {
var hm = document.createElement("script");
hm.src = "http://tajs.qq.com/stats?sId={{ theme.tencent_analytics }}";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();

{% endif %}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Open themes/next/layout/_third-party/analytics/tencent-analytics.swig and inspect how the Tencent Analytics script URL is assembled. Update the URL as requested and verify that the generated template uses the expected protocol while preserving the existing analytics ID interpolation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
analytics
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.