Skip to content

docs: Initialize amplitude, update readme to English #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_AMPLITUDE_API_KEY=YOUR_AMPLITUDE_API_KEY
137 changes: 137 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import Layout from './Layout.vue'
import Layout from "./Layout.vue";
import * as amplitude from "@amplitude/analytics-browser";

export default {
Layout,
}
async enhanceApp() {
if (typeof window !== 'undefined') {
const amplitudeApiKey = (import.meta as any).env.VITE_AMPLITUDE_API_KEY;
amplitude.init(amplitudeApiKey, { autocapture: true });
}
}
};
6 changes: 0 additions & 6 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---

Some of the test code in this software comes from the lodash library (https://github.com/lodash/lodash).

The copyright for this imported test code from lodash is owned by the JS Foundation and other contributors <https://js.foundation/>.
Loading