# Possible to override a core file functionality?

**URL:** https://meta.discourse.org/t/possible-to-override-a-core-file-functionality/85530
**Category:** Development
**Created:** [4월 17, 2018, 12:27오후 UTC](https://meta.discourse.org/t/possible-to-override-a-core-file-functionality/85530 "2018-04-17T12:27:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mihir](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Mihir](https://meta.discourse.org/u/Mihir)
#### Post date: [4월 17, 2018, 12:27오후 UTC](https://meta.discourse.org/t/possible-to-override-a-core-file-functionality/85530/1 "2018-04-17T12:27:05Z")

</div>

Is it possible to override functions of discourse/app/assets/javascripts/discourse/lib/click-track.js.es6 with slightly modified one?

I want to change line #46

I am looking for a method which won’t lose changes when discourse is updated.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [4월 17, 2018, 2:17오후 UTC](https://meta.discourse.org/t/possible-to-override-a-core-file-functionality/85530/2 "2018-04-17T14:17:26Z")

</div>

> [@Mihir](#):
>
> I am looking for a method which won’t lose changes when discourse is updated.

You might be able to get away with a theme. If not, then you’ll have to write a plugin.
