Skip to content

Commit

Permalink
Fix TOC links in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tmrdlt committed Jan 22, 2024
1 parent 2a39b0d commit 454a51f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ Integrate Tag Commander with your React applications seamlessly using the `react
- [License](#license)
- [Development](#development)

# Features <a name="features">
# Features <a name="features"></a>

- Automatic page tracking
- Event triggering
- Supports multiple containers

# Installation and Quick Start <a name="installation-and-quick-start"/>
# Installation and Quick Start <a name="installation-and-quick-start"></a>

## Installation

Expand Down Expand Up @@ -88,11 +88,11 @@ function App() {
return ( tcReady ? <div>Containers loaded</div> : <div>Now loading</div> );
}
```
# Methods <a name="methods"/>
# Methods <a name="methods"></a>
Many methods are asynchronous. If you want to ensure that a method has been executed before continuing, you can use the `await` keyword. Please check the function definition to see if it is asynchronous.
## Container Management <a name="container-management"/>
## Container Management <a name="container-management"></a>
```js
// Adding a container
await wrapper.addContainer('my-custom-id', '/url/to/container.js', 'head');
Expand All @@ -101,7 +101,7 @@ Many methods are asynchronous. If you want to ensure that a method has been exec
wrapper.removeContainer('my-custom-id');
```
## Variable Management <a name="variable-management"/>
## Variable Management <a name="variable-management"></a>
```js
// Set variables
await wrapper.setTcVars({ env_template : "shop", ... });
Expand All @@ -116,7 +116,7 @@ Many methods are asynchronous. If you want to ensure that a method has been exec
wrapper.removeTcVar('VarKey');
```
## Events <a name="events"/>
## Events <a name="events"></a>
- Refer to the [base documentation on events](https://community.commandersact.com/tagcommander/user-manual/container-management/events) for an understanding of events in general.
- The method "triggerEvent" is the new name of the old method "captureEvent"; an alias has been added to ensure backward compatibility.
Expand All @@ -130,7 +130,7 @@ Many methods are asynchronous. If you want to ensure that a method has been exec
await wrapper.triggerEvent(eventLabel, htmlElement, data);
```
# Reloading Containers <a name="reloading-containers"/>
# Reloading Containers <a name="reloading-containers"></a>
1. **Manual Reload**: Update your container after any variable change.
```js
Expand All @@ -152,7 +152,7 @@ Many methods are asynchronous. If you want to ensure that a method has been exec
}
```
# Sample App <a name="sample-app"/>
# Sample App <a name="sample-app"></a>
To help you with your implementation we provided a sample application. To run it clone the repo then run:
```bash
Expand All @@ -161,10 +161,10 @@ yarn start
```
Then, visit [http://localhost:3000](http://localhost:3000).
# License <a name="license"/>
# License <a name="license"></a>
This module uses the [MIT License](http://revolunet.mit-license.org). Contributions are welcome.
# Development <a name="development"/>
# Development <a name="development"></a>
After forking, set up your environment:
Expand Down

0 comments on commit 454a51f

Please sign in to comment.