Chatway Chatway
  • Home
  • Product
  • Pricing
  • Built For
  • Resources
    • Help Center
    • Blog
    • Integrations
    • Social Media Buttons
    • Glossary
  • What’s New
  • Sign In →
Sign In Sign Up for Free Free Sign Up

How to push tags in Chatway using a JavaScript function

  • Help Center >
  • For developers >
  • How to push tags in Chatway using a JavaScript function

This guide will show you how to use a JavaScript function to add or remove Chatway tags for visitors/conversations.

Using the JavaScript function, you can add or remove tags for a visitor/conversation, based on your needs, for example after you’re done with a ticket, you can remove all tags assigned to it in one quick step instead of manually removing all tags.

To learn more about how to use JavaScript functions to add or remove Chatway custom data, please check our easy visual guide here.

  1. Add tags to a visitor/conversation

The function is: $chatway.addChatwayTags(‘value’); – where you need to replace ‘value’ with the tag value of your choice, e.g. “sales”:

Example:

$chatway.addChatwayTags('Sales');

You can use this function to update a visitor/conversation tag to “Sales” by running it in your client’s browser console and will add a tag to this visitor/conversation according to the entered value.

2. Remove tags to a visitor/conversation

The function is: $chatway.removeChatwayTags(‘value’); – where you need to replace ‘value’ with the tag value of your choice, e.g. “sales”:

Example:

$chatway.removeChatwayTags('sales');

You just have to run the function in your client’s browser console and it will remove the tag in question to this visitor/conversation.

You can also remove several tags by running this function in your client’s browser console.

For example:

$chatway.removeChatwayTags('['value1', 'value2', 'value3']);

And that’s it! Don’t forget to check our entire Chatway knowledge base to make the most out of it.

Plans That Fit Every Stage of Your Growth

Start free and upgrade as your needs expand. Whether you’re working solo, leading a team, or scaling big, we’ve got a plan built for you.

Sign Up for Free

No Credit Card Required

Chatway essential features
Capterra Capterra 2 Grid Leader Grid Leader High performancer 1 High performancer 2 High performancer 3 High performancer 4 High performancer 5 GetApp Customer Support
chatway footer logo

Improve live chat communication and unlock customer satisfaction with Chatway

app store logo play store logo
5 stars reviews
1,000+ Five-Star Reviews on iOS & android app stores

Company

  • About Us
  • Privacy Policy
  • GDPR
  • Terms of Service
  • Pricing

Resources

  • Contact Us
  • Integrations
  • Built For
  • Help Center
  • Comparison Page

© 2026 Chatway. All rights reserved.

GDPR icon
Accessibility Adjustments

Powered byOneTap

How long do you want to hide the toolbar?
Hide Toolbar Duration
Select your accessibility profile
Vision Impaired Mode
Enhances website's visuals
Seizure Safe Profile
Clear flashes & reduces color
ADHD Friendly Mode
Focused browsing, distraction-free
Blindness Mode
Reduces distractions, improves focus
Epilepsy Safe Mode
Dims colors and stops blinking
Content Modules
Font Size

Default

Line Height

Default

Color Modules
Orientation Modules